<template>
    <el-dialog
      class="eldialog box-el-dialog"
      v-loading="loading"
      :visible.sync="visible"
      :title="title"
      :close-on-click-modal="false"
      append-to-body
      top="2vh"
      width="85%"
      :modal-append-to-body="true"
      :close-on-press-escape="false"
      @close="closedRmb"
    >
      <div class="box-content-height" style="">
        <!-- <el-card class="box-card" style="overflow: auto;"> -->
        <el-form
          ref="personBaseForm"
          :model="personForm"
          :rules="personRules"
          class="height100"
          style="width: 100%; display: flex"
        >
          <div style="width: 72%; float: left">
            <el-tabs
              v-model="activeName"
              type="border-card"
              class="content-height"
              style=""
            >
              <el-tab-pane label="基本信息（一）" name="first">
                <table
                  class="el-table__body el-table--border
                         ltp-table
                         border"
                  style="width: 99.9%; border-collapse: collapse"
                >
                  <tr>
                    <th>
                      姓名<span style="color: red">*</span>
                    </th>
                    <td
                      colspan="3"
                      :class="[personForm.xingming_look == '1' && personForm.xingming_edit == '1'? 'ltpAudit': 'ltpLook',]"
                    >
                      <!--                      :class="[personForm.xingming_edit == '0'?'ltpHide':'']"-->
                      <el-input
                        placeholder="请输入"
                        v-model="personForm.xingming"
                        readonly
                        v-if="personForm.sf_sfzh_sh == '1'"
                      ></el-input>
                      <el-input
                        placeholder="请输入"
                        v-model="personForm.xingming"
                        v-else
                        @blur="cadreInfoAlterUpdate('xingming')"
                        :readonly="personForm.xingming_look =='1' && personForm.xingming_edit == '1' ? false : true"
                      ></el-input>
                    </td>
                    <th>性别</th>
                    <td
                      colspan="3"
                      :class="[personForm.xingbie_look == '1' && personForm.xingbie_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-popover
                        ref="xingbiePopover"
                        placement="bottom-start"
                        width="300"
                        :disabled=" personForm.xingbie_look == '1' && personForm.xingbie_edit == '1' ? false : true "
                        trigger="click"
                        @show="popoverClick('GB2261')"
                      >
                        <commonDictRadio
                          ref="xingbieSlot"
                          @popoverCallBack="popoverCallBack"
                        ></commonDictRadio>
                        <el-input
                          v-model="personForm.xingbie"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                    <th>出生年月</th>
                    <td
                      colspan="3"
                      :class="[ personForm.csny_look == '1' && personForm.csny_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-date-picker
                        :readonly=" personForm.csny_look == '1' && personForm.csny_edit == '1' ? false : true"
                        v-model="personForm.csny"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                        @change="cadreInfoAlterUpdate('csny')"
                      >
                      </el-date-picker>
                    </td>
                    <td
                      rowspan="4"
                      colspan="2"
                      style="text-align: center; width: 132px"
                    >
                      <el-upload
                        :disabled="personForm.zhaopian_look == '1' && personForm.zhaopian_edit == '1' ? false : true"
                        class="avatar-uploader"
                        :action="uploadUrl"
                        :show-file-list="false"
                      >
                      <!-- :on-success="handleAvatarSuccess" -->
                        <!-- :before-upload="beforeAvatarUpload" -->
                        <img
                          v-if="personForm.zhaopian"
                          :src="personForm.zhaopian"
                          class="avatar"
                          style="
                                                      width: 128px;
                                                      height: 160px;
                                                  "
                        />
                        <i
                          v-else
                          class="el-icon-plus avatar-uploader-icon "
                          style="
                                                      width: 128px;
                                                      height: 160px;
                                                  "
                        ></i>
                      </el-upload>
                    </td>
                  </tr>
                  <tr>
                    <th>民族</th>
                    <td
                      colspan="3"
                      :class="[personForm.minzu_mc_look == '1' && personForm.minzu_mc_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-popover
                        ref="minzuPopover"
                        placement="bottom-start"
                        width="300"
                        :disabled="
                                                  personForm.minzu_mc_look ==
                                                      '1' &&
                                                  personForm.minzu_mc_edit == '1'
                                                      ? false
                                                      : true
                                              "
                        trigger="click"
                        @show="popoverClick('GB3304')"
                      >
                        <commonDictRadio
                          ref="minzuSlot"
                          @popoverCallBack="
                                                      popoverCallBack
                                                  "
                        ></commonDictRadio>
                        <el-input
                          v-model="personForm.minzu_mc"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                    <th>籍贯</th>
                    <td
                      colspan="3"
                      :class="[
                                              personForm.jiguan_look == '1' &&
                                              personForm.jiguan_edit == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-popover
                        ref="jiguanPopover"
                        placement="bottom-start"
                        width="300"
                        :disabled="
                                                  personForm.jiguan_look == '1' &&
                                                  personForm.jiguan_edit == '1'
                                                      ? false
                                                      : true
                                              "
                        trigger="click"
                        @show="popoverClick('jiguan')"
                      >
                        <treeDictRadio
                          ref="jiguanSlot"
                          @popoverCallBack="
                                                      popoverCallBack
                                                  "
                        ></treeDictRadio>
                        <el-input
                          v-model="personForm.jiguan"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                    <th>出生地</th>
                    <td
                      colspan="3"
                      :class="[
                                              personForm.chushengdi_look == '1' &&
                                              personForm.chushengdi_edit == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-popover
                        ref="chushengdiPopover"
                        placement="bottom-start"
                        width="300"
                        :disabled="
                                                  personForm.chushengdi_look ==
                                                      '1' &&
                                                  personForm.chushengdi_edit ==
                                                      '1'
                                                      ? false
                                                      : true
                                              "
                        trigger="click"
                        @show="popoverClick('chushengdi')"
                      >
                        <treeDictRadio
                          ref="chushengdiSlot"
                          @popoverCallBack="
                                                      popoverCallBack
                                                  "
                        ></treeDictRadio>
                        <el-input
                          v-model="personForm.chushengdi"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                  </tr>
                  <tr>
                    <th>
                      政治面貌<span style="color: red"
                    >*</span
                    >
                    </th>
                    <td
                      colspan="7"
                    
                      :class="[
                                              personForm.rudangxinxi_look ==
                                                  '1' &&
                                              personForm.rudangxinxi_edit == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.rudangxinxi"
                        placeholder="请选择"
                        hidden
                        style="display: none"
                      />
                      <el-input
                        v-model="
                                                  personForm.rudangxinxiForLook
                                              "
                        placeholder="请选择"
                        readonly
                      />
                    </td>
                    <th>入党时间</th>
                    <td
                      colspan="3"
                      :class="[
                                              personForm.rudangxinxi_look ==
                                                  '1' &&
                                              personForm.rudangxinxi_edit == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-date-picker
                        readonly
                        hidden
                        v-model="personForm.rdsj"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        :picker-options="checkTime"
                        style="width: 100%; display: none"
                      >
                      </el-date-picker>
                      <el-input
                        v-model="personForm.rdsjForLook"
                        placeholder="请选择"
                        readonly
                      />
                    </td>
                  </tr>
                  <tr>
                    <th>参加工作时间</th>
                    <td
                      colspan="7"
                      :class="[
                                              personForm.cjgzsj_look == '1' &&
                                              personForm.cjgzsj_edit == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-date-picker
                        :readonly="
                                                  personForm.cjgzsj_look == '1' &&
                                                  personForm.cjgzsj_edit == '1'
                                                      ? false
                                                      : true
                                              "
                        v-model="personForm.cjgzsj"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                        @change="
                                                  cadreInfoAlterUpdate('cjgzsj')
                                              "
                      >
                      </el-date-picker>
                    </td>
                    <th>健康状况</th>
                    <td
                      colspan="3"
                      :class="[
                                              personForm.jiankang_look == '1' &&
                                              personForm.jiankang_edit == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <!-- <el-autocomplete
                          :readonly="personForm.jiankang_look == '1'&&personForm.jiankang_edit == '1'?false:true"
                          class="inline-input"
                          v-model="personForm.jiankang"
                          :fetch-suggestions="querySearch"
                          placeholder="请输入健康状况"
                          style="width: 100%"
                          @change="cadreInfoAlterUpdate('jiankang')"
                        ></el-autocomplete> -->
                      <div
                        style="
                                                  width: 100px;
                                                  display: inline-block;
                                              "
                      >
                        <el-popover
                          ref="jiankangPopover"
                          placement="bottom-start"
                          width="300"
                          :disabled="
                                                      personForm.jiankang_look ==
                                                          '1' &&
                                                      personForm.jiankang_look ==
                                                          '1'
                                                          ? false
                                                          : true
                                                  "
                          trigger="click"
                          @show="popoverClick('GB2261D')"
                        >
                          <commonDictRadio
                            ref="jiankangSlot"
                            @popoverCallBack="
                                                          popoverCallBack
                                                      "
                          ></commonDictRadio>
                          <el-input
                            v-model="
                                                          personForm.jiankang
                                                      "
                            slot="reference"
                            placeholder="请点击选择"
                            readonly
                          />
                        </el-popover>
                      </div>
                      <el-button
                        style="
                                                  float: right;
                                                  margin-right: 10px;
                                              "
                        type="primary"
                        plain
                        size="small"
                        @click="centerDialogVisible = true"
                        v-show="
                                                  personForm.jiankang !==
                                                      '健康' &&
                                                  personForm.jiankang !== ''
                                              "
                      >原因</el-button
                      >
                    </td>
                  </tr>
                  <tr>
                    <th rowspan="4">学历学位</th>
                    <th rowspan="2">全日制<br />教育</th>
                    <th colspan="2">学历</th>
                    <td
                      colspan="4"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.qrzxl_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                    <th rowspan="2">毕业院校系<br />及专业</th>
                    <td
                      colspan="5"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.qrzxlxx_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                  </tr>
                  <tr>
                    <th colspan="2">学位</th>
                    <td
                      colspan="4"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.qrzxw_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                    <td
                      colspan="5"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.qrzxwxx_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                  </tr>
                  <tr>
                    <th rowspan="2">在职教育</th>
                    <th colspan="2">学历</th>
                    <td
                      colspan="4"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.zzxl_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                    <th rowspan="2">毕业院校系<br />及专业</th>
                    <td
                      colspan="5"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.zzxlxx_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                  </tr>
                  <tr>
                    <th colspan="2">学位</th>
                    <td
                      colspan="4"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.zzxw_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                    <td
                      colspan="5"
                      :class="[
                                              personForm.personEducationLook ==
                                                  '1' &&
                                              personForm.personEducation == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.zzxwxx_zg"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                  </tr>
                  <tr hidden>
                    <th>
                      工作单位及职务（全称）<span
                      style="color: red"
                    >*</span
                    >
                    </th>
                    <td
                      colspan="13"
                   
                      :class="[
                                              personForm.personJobLook == '1' &&
                                              personForm.personJob == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.zhiwu_quancheng"
                        readonly
                        placeholder="请选择"
                        iconfont
                 
                      />
                    </td>
                  </tr>
                  <tr>
                    <th>工作单位<br />及职务</th>
                    <td
                      colspan="7"
                    
                      :class="[
                                              personForm.personJobLook == '1' &&
                                              personForm.personJob == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <!-- <el-input style="" v-model="personForm.zhiwu_jiancheng" readonly placeholder="请选择" iconfont  @change="cadreInfoAlterUpdate('zhiwu_jiancheng')" /> -->
                      <div
                        style="
                                                  line-height: 20px;
                                                  width: 445px;
                                                  padding: 5px 15px;
                                                  color: #606266;
                                                  font-size: 13px;
                                              "
                      >
                        {{
                          personForm.zhiwu_jiancheng
                            ? personForm.zhiwu_jiancheng
                            : "请选择"
                        }}
                      </div>
                    </td>
                    <th>现职时间</th>
                    <td
                      colspan="5"
                  
                      :class="[
                                              personForm.personJobLook == '1' &&
                                              personForm.personJob == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        v-model="personForm.zw_sj"
                        readonly
                        placeholder="请选择"
                        iconfont
                  
                      />
                    </td>
                  </tr>
  
                  <tr>
                    <th>领导职务层次</th>
                    <td
                      colspan="7"
                    
                      :class="[
                                              personForm.personPostLook == '1' &&
                                              personForm.personPost == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <!--                      <el-input v-model="personForm.zwcc" readonly placeholder="请选择"  @change="cadreInfoAlterUpdate('zwcc')"/>-->
                      <el-input
                        :value="
                                                  personForm.zwcc == null
                                                      ? ''
                                                      : personForm.zwcc == ''
                                                      ? ''
                                                      : personForm.zwcc +
                                                        '（' +
                                                        personForm.zwcc_sj +
                                                        '）'
                                              "
                        readonly
                        placeholder="请选择"
                    
                      />
                    </td>
                    <th>员额法官检察官职务</th>
                    <td
                      colspan="5"
                      :class="[
                                              personForm.personYepostLook == '1' &&
                                              personForm.personYepost == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        :value="
                                                  personForm.yezwcc_mc == null
                                                      ? ''
                                                      : personForm.yezwcc_mc == ''
                                                      ? ''
                                                      : personForm.yezwcc_mc +
                                                        '（' +
                                                        personForm.yezwcc_sj +
                                                        '）'
                                              "
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                    </tr>
                    <tr>
  <!--                    <th>任现领导职务<br>时间</th>
                      <td colspan="7">
                        <el-date-picker
                          v-model="personForm.zwcc_sj"
                          type="month"
                          format="yyyy-MM"
                          value-format="yyyy-MM"
                          placeholder="请选择"
                          style="width: 100%">
                        </el-date-picker>
                      </td>-->
                      <th>职级</th>
                      <td
                        colspan="13"
                        :class="[
                                                personForm.personRankLook == '1' &&
                                                personForm.personRank == '1'
                                                    ? 'ltpAudit'
                                                    : 'ltpLook',
                                            ]"
                      >
                        <!--                      <el-input v-model="personForm.zjcc_mc" hidden placeholder="请选择"  @change="cadreInfoAlterUpdate('zjcc')"/>-->
                        <el-input
                          :value="
                                                    personForm.zjcc_mc == null
                                                        ? ''
                                                        : personForm.zjcc_mc == ''
                                                        ? ''
                                                        : personForm.zjcc_mc +
                                                          '（' +
                                                          personForm.zjcc_sj +
                                                          '）'
                                                "
                          readonly
                          placeholder="请选择"
                        />
                      </td>
                    <!--            <th>任现职级<br>时间</th>-->
                    <!--                    <td colspan="2">-->
                    <!--                      <el-date-picker-->
                    <!--                        readonly-->
                    <!--                        v-model="personForm.zjcc_sj"-->
                    <!--                        type="month"-->
                    <!--                        format="yyyy-MM"-->
                    <!--                        value-format="yyyy-MM"-->
                    <!--                        placeholder="请选择"-->
                    <!--                        style="width: 100%">-->
                    <!--                      </el-date-picker>-->
                    <!--                    </td>-->
                  </tr>
                  <tr>
                    <th>简历</th>
                    <td
                      colspan="13"
                   
                      :class="[
                                              personForm.personResumeShortLook ==
                                                  '1' &&
                                              personForm.personResumeShort == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        type="textarea"
                        :rows="11"
                        readonly
                        placeholder="请选择"
                        v-model="personForm.jianli_jingjian"
                       
                      ></el-input>
                    </td>
                  </tr>
                </table>
              </el-tab-pane>
              <el-tab-pane label="基本信息（二）" name="second">
                <table
                  class="
                                      el-table__body el-table--border
                                      ltp-table
                                      border
                                  "
                  style="width: 99.9%; border-collapse: collapse"
                >
                  <tr style="height: 116px">
                    <th>奖励情况</th>
                    <td
                      colspan="13"
                      :class="[
                                              personForm.personRewardLook ==
                                                  '1' &&
                                              personForm.personReward == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        type="textarea"
                        :rows="3"
                        placeholder="请选择"
                        v-model="personForm.jl"
                        readonly
                      ></el-input>
                    </td>
                  </tr>
                  <tr style="height: 116px">
                    <th>处分情况</th>
                    <td
                      colspan="13"
                      :class="[
                                              personForm.personPunishmentLook ==
                                                  '1' &&
                                              personForm.personPunishment == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <el-input
                        type="textarea"
                        :rows="3"
                        placeholder="请选择"
                        v-model="personForm.cf"
                        readonly
                      ></el-input>
                    </td>
                  </tr>
                  <tr style="height: 116px">
                    <th>年度考核结果</th>
                    <td
                      colspan="13"
                      :class="[
                                              personForm.personAssessmentLook ==
                                                  '1' &&
                                              personForm.personAssessment == '1'
                                                  ? 'ltpAudit'
                                                  : 'ltpLook',
                                          ]"
                    >
                      <!-- <el-input placeholder="请输入" v-model="personForm.kaohe" readonly class="inputStyle">
                          <el-button slot="append" icon="iconfont el-icon-bianji" @click="getAssessment"></el-button>
                        </el-input> -->
                      <el-input
                        type="textarea"
                        :rows="3"
                        v-model="personForm.kaohe"
                        readonly
                        placeholder="请选择"
                      />
                    </td>
                  </tr>
                  <tr>
                    <th>
                      家庭主要成员<br />及重要<br />社会关系
                    </th>
                    <td
                      colspan="13"
                      style="overflow: auto"
                      valign="top"
                    >
                      <family ref="dialogFamily"></family>
                    </td>
                  </tr>
                </table>
              </el-tab-pane>
              <el-tab-pane label="基本信息（三）" name="third">
                <table
                  class="
                                      el-table__body el-table--border
                                      ltp-table
                                      border
                                  "
                  style="width: 99.9%; border-collapse: collapse"
                >
                  <tr style="height: 80px">
                    <th>分管工作</th>
                    <td colspan="13"
                        style="padding-left: 10px"
                        :class="[personForm.personWorkLook == '1' && personForm.personWork == '1' ? 'ltpAudit' : 'ltpLook', ]"
                        >
                      <el-input :rows="3" type="textarea"
                                v-model="personForm.fggz"
                                slot="reference" readonly />
                    </td>
                  </tr>
                  <tr style="height: 80px">
                    <th>培训记录</th>
                    <td colspan="13"  :class="[personForm.personTrainLook == '1' && personForm.personTrain == '1' ? 'ltpAudit' : 'ltpLook', ]">
                      <el-input :rows="3" type="textarea" v-model="personForm.peixun"
                                slot="reference" readonly />
                    </td>
                  </tr>
                  <tr style="height: 80px">
                    <th>附件材料信息</th>
                    <td colspan="13"  :class="[personForm.personAttachLook == '1' && personForm.personAttach == '1' ? 'ltpAudit' : 'ltpLook', ]">
                      <el-input :rows="3" type="textarea" v-model="personForm.fujian" slot="reference" readonly v-show="attachShow"/>
                      <el-input :rows="3" type="textarea" slot="reference" readonly v-show="attachShow"/>
                    </td>
                  </tr>
                  <tr>
                    <th>是否选调</th>
                    <td
                      colspan="3"
                      :class="[personForm.shifouxuandiao_look == '1' && personForm.shifouxuandiao_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                      style="padding-left: 10px"
                    >
                      <!-- <el-checkbox v-model="personForm.shifouxuandiao" :disabled="personForm.shifouxuandiao_look == '1'&&personForm.shifouxuandiao_edit == '1'?false:true" @change="cadreInfoAlterUpdate('shifouxuandiao')">是否选调</el-checkbox> -->
                      <el-radio-group
                        v-model="personForm.shifouxuandiao"
                        :disabled="personForm.shifouxuandiao_look == '1' && personForm.shifouxuandiao_edit == '1' ? false : true"
                        
                      >
                        <el-radio :label="1">是</el-radio>
                        <el-radio :label="0">否</el-radio>
                      </el-radio-group>
                    </td>
                    <th>选调时间</th>
                    <td
                      colspan="4"
                      :class="[personForm.xuandiaoriqi_look == '1' && personForm.xuandiaoriqi_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-date-picker
                        :readonly=" personForm.xuandiaoriqi_look == '1' && personForm.xuandiaoriqi_edit == '1' ? false : true "
                        v-model="personForm.xuandiaoriqi"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                      >
                      </el-date-picker>
                    </td>
                    <th>保留待遇</th>
                    <td
                      colspan="4"
                      :class="[personForm.baoliudaiyumingcheng_look == '1' && personForm.baoliudaiyumingcheng_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-popover
                        ref="baoliudaiyuPopover"
                        placement="bottom-start"
                        width="300"
                        :disabled="personForm.baoliudaiyumingcheng_look == '1' && personForm.baoliudaiyumingcheng_edit == '1' ? false : true "
                        trigger="click"
                        @show="popoverClick('XZ91')"
                      >
                        <commonDictRadio
                          ref="baoliudaiyuSlot"
                          @popoverCallBack="popoverCallBack"
                        ></commonDictRadio>
                        <el-input
                          v-model="personForm.baoliudaiyumingcheng"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                  </tr>
                  <!--                <tr>-->
                  <!--                  <th>公务员登记<br>时间</th>-->
                  <!--                  <td colspan="3">-->
                  <!--                    <el-date-picker-->
                  <!--                      v-model="personForm.gwydjsj"-->
                  <!--                      type="month"-->
                  <!--                      format="yyyy-MM"-->
                  <!--                      value-format="yyyy-MM"-->
                  <!--                      placeholder="请选择"-->
                  <!--                      style="width: 100%"-->
                  <!--                      @change="cadreInfoAlterUpdate('gwydjsj')">-->
                  <!--                    </el-date-picker>-->
                  <!--                  </td>-->
                  <!--                  <th>身份证号</th>-->
                  <!--                  <td colspan="4" @dblclick="updateIdCard" v-if="title === '人员修改'">-->
                  <!--                    <el-input v-model="personForm.sfzh" placeholder="请选择" readonly @change="checkIdCard" />-->
                  <!--                  </td>-->
                  <!--                  <td colspan="4" v-else>-->
                  <!--                    <el-input v-model="personForm.sfzh" placeholder="请输入" @change="checkIdCard"/>-->
                  <!--                  </td>-->
                  <!--                  <th>手机号</th>-->
                  <!--                  <td colspan="4">-->
                  <!--                    <el-input v-model="personForm.shouji" @change="checkPhone" placeholder="请输入" @blur="cadreInfoAlterUpdate('shouji')"/>-->
                  <!--                  </td>-->
                  <!--                </tr>-->
                  <!--                <tr>-->
                  <!--                  <th>专业技术职务</th>-->
                  <!--                  <td colspan="3" @dblclick="getProfession">-->
                  <!--                    <el-input v-model="personForm.zyjszw" readonly placeholder="请选择"   @change="cadreInfoAlterUpdate('zyjszw')"/>-->
                  <!--                  </td>-->
                  <!--                  <th>熟悉专业<br>有何专长</th>-->
                  <!--                  <td colspan="9">-->
                  <!--                    <el-input v-model="personForm.zhuanyejishu" placeholder="请输入" @blur="cadreInfoAlterUpdate('zhuanyejishu')"/>-->
                  <!--                  </td>-->
                  <!--                </tr>-->
                  <!--                <tr>-->
                  <!--                  <th>编制关系<br>所在单位</th>-->
                  <!--                  <td colspan="3" @dblclick="chooseParentModule('xz')">-->
                  <!--                    <el-input v-model="personForm.xingzheng_jg_mingcheng" readonly placeholder="请选择" @change="cadreInfoAlterUpdate('xingzheng_jg')"/>-->
                  <!--                  </td>-->
                  <!--                  <th>统计关系<br>所在单位</th>-->
                  <!--                  <td colspan="4" @dblclick="chooseParentModule('tj')">-->
                  <!--                    <el-input v-model="personForm.tongji_jg_mingcheng" readonly placeholder="请选择" @change="cadreInfoAlterUpdate('tongji_jg')"/>-->
                  <!--                  </td>-->
                  <!--                  &lt;!&ndash; <th>工资关系所在单位</th>-->
                  <!--                  <td colspan="5" @dblclick="chooseParentModule('gz')">-->
                  <!--                    <el-input v-model="personForm.gongzi_jg_mingcheng" readonly placeholder="请选择" />-->
                  <!--                  </td> &ndash;&gt;-->
                  <!--                  <th>职位类别</th>-->
                  <!--                  <td colspan="4">-->
                  <!--                    <el-popover ref="zhiweiPopover" :popper-options="{ boundariesElement: 'body', gpuAcceleration: true }" placement="bottom" width="300" trigger="click" @show="popoverClick('XZ93')">-->
                  <!--                      <treeDictRadio ref="zhiweiSlot" @popoverCallBack="popoverCallBack"></treeDictRadio>-->
                  <!--                      <el-input v-model="personForm.zhiweileibie_mingcheng" slot="reference" placeholder="请点击选择" readonly/>-->
                  <!--                    </el-popover>-->
                  <!--                  </td>-->
                  <!--                </tr>-->
                  <!--                <tr>-->
                  <!--                  <th>人员类别</th>-->
                  <!--                  <td colspan="3">-->
                  <!--                    <el-popover ref="rylbPopover" placement="bottom" width="300" trigger="click" @show="popoverClick('ZB125')">-->
                  <!--                      <commonDictRadio ref="rylbSlot" @popoverCallBack="popoverCallBack"></commonDictRadio>-->
                  <!--                      <el-input v-model="personForm.rylb" slot="reference" placeholder="请点击选择" readonly/>-->
                  <!--                    </el-popover>-->
                  <!--                  </td>-->
                  <!--                  <th>编制类型</th>-->
                  <!--                  <td colspan="4">-->
                  <!--                    <el-popover ref="bzlxPopover" placement="bottom" width="300" trigger="click" @show="popoverClick('ZB135')">-->
                  <!--                      <commonDictRadio ref="bzlxSlot" @popoverCallBack="popoverCallBack"></commonDictRadio>-->
                  <!--                      <el-input v-model="personForm.bzlx" slot="reference" placeholder="请点击选择" readonly/>-->
                  <!--                    </el-popover>-->
                  <!--                  </td>-->
                  <!--                  <th>管理类别</th>-->
                  <!--                  <td colspan="4">-->
                  <!--                    <el-popover ref="gllbPopover" placement="bottom" width="300" trigger="click" @show="popoverClick('DB201')">-->
                  <!--                      <commonDictRadio ref="gllbSlot" @popoverCallBack="popoverCallBack"></commonDictRadio>-->
                  <!--                      <el-input v-model="personForm.gllb" slot="reference" placeholder="请点击选择" readonly/>-->
                  <!--                    </el-popover>-->
                  <!--                  </td>-->
                  <!--                </tr>-->
                  <tr>
                    <th>干部统计</th>
                    <td
                      colspan="3"
                      :class="[personForm.jinjinpingshikaohe_look == '1' && personForm.jinjinpingshikaohe_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                      style="padding-left: 10px"
                    >
                      <!-- <el-checkbox v-model="personForm.jinjinpingshikaohe" :disabled="personForm.jinjinpingshikaohe_look == '1'&&personForm.jinjinpingshikaohe_edit == '1'?false:true" @change="cadreInfoAlterUpdate('jinjinpingshikaohe')">只进行平时考核人员</el-checkbox> -->
                      <el-radio-group
                        v-model="personForm.jinjinpingshikaohe"
                        :disabled="personForm.jinjinpingshikaohe_look == '1' && personForm.jinjinpingshikaohe_edit == '1' ? false : true"
                        @change="cadreInfoAlterUpdate('jinjinpingshikaohe')"
                      >
                        <el-radio :label="1">是</el-radio>
                        <el-radio :label="0">否</el-radio>
                      </el-radio-group>
                    </td>
                    <th>是否考录</th>
                    <td
                      colspan="4"
                      :class="[personForm.sfkl_look == '1' && personForm.sfkl_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                      style="padding-left: 10px"
                    >
                      <!-- <el-checkbox v-model="personForm.sfkl" :disabled="personForm.sfkl_look == '1'&&personForm.sfkl_edit == '1'?false:true" @change="cadreInfoAlterUpdate('sfkl')">是否考录</el-checkbox> -->
                      <el-radio-group
                        v-model="personForm.sfkl"
                        :disabled="personForm.sfkl_look == '1' && personForm.sfkl_edit == '1' ? false : true"
                        @change="cadreInfoAlterUpdate('sfkl')"
                      >
                        <el-radio :label="1">是</el-radio>
                        <el-radio :label="0">否</el-radio>
                      </el-radio-group>
                    </td>
                    <th>考录时间</th>
                    <td
                      colspan="4"
                      :class="[personForm.klsj_look == '1' && personForm.klsj_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-date-picker
                        :readonly="personForm.klsj_look == '1' && personForm.klsj_edit == '1' ? false : true"
                        v-model="personForm.klsj"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                        @change="cadreInfoAlterUpdate('klsj')"
                      >
                      </el-date-picker>
                    </td>
                  </tr>
                  <tr>
                    <th>两年基层工作经历</th>
                    <td
                      colspan="3"
                      style="
                                              border-right: none;
                                              padding-left: 10px;
                                          "
                      :class="[personForm.lngzjl_bz_look == '1' && personForm.lngzjl_bz_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <!-- <el-checkbox v-model="personForm.lngzjl_bz" :disabled="personForm.lngzjl_bz_look == '1'&&personForm.lngzjl_bz_edit == '1'?false:true" @change="cadreInfoAlterUpdate('lngzjl_bz')">具有两年以上基层工作经历</el-checkbox> -->
                      <el-radio-group
                        v-model="personForm.lngzjl_bz"
                        :disabled="personForm.lngzjl_bz_look == '1' && personForm.lngzjl_bz_edit == '1' ? false : true"
                        @change="cadreInfoAlterUpdate('lngzjl_bz')"
                      >
                        <el-radio :label="1">是</el-radio>
                        <el-radio :label="0">否</el-radio>
                      </el-radio-group>
                    </td>
                    <th>公务员级别</th>
                    <td
                      colspan="4"
                      :class="[personForm.gzjb_look == '1' && personForm.gzjb_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-popover
                        ref="gzjbPopover"
                        placement="bottom-start"
                        width="300"
                        :disabled="personForm.gzjb_look == '1' && personForm.gzjb_edit == '1' ? false : true"
                        trigger="click"
                        @show="popoverClick('ZB134')"
                      >
                        <commonDictRadio
                          ref="gzjbSlot"
                          @popoverCallBack="popoverCallBack"
                        ></commonDictRadio>
                        <el-input
                          v-model="personForm.gzjb"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                    <th>专业类公务员任职资格</th>
                    <td
                      colspan="4"
                      :class="[personForm.zyjs_mingcheng_look == '1' && personForm.zyjs_mingcheng_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-popover
                        ref="zyjsPopover"
                        placement="bottom-start"
                        width="300"
                        :disabled="personForm.zyjs_mingcheng_look == '1' && personForm.zyjs_mingcheng_edit == '1' ? false : true "
                        trigger="click"
                        @show="popoverClick('ZB139')"
                      >
                        <treeDictRadio
                          ref="zyjsSlot"
                          @popoverCallBack="popoverCallBack"
                        ></treeDictRadio>
                        <el-input
                          v-model="personForm.zyjs_mingcheng"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </el-popover>
                    </td>
                  </tr>
                  <tr>
                    <th>工龄</th>
                    <td colspan="3">
                      <el-input
                        v-model="personForm.glnx"
                        :class="[personForm.glnx_look == '1' && personForm.glnx_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        :readonly="personForm.glnx_look == '1' && personForm.glnx_edit == '1' ? false : true"
                        placeholder="请输入"
                        @change="cadreInfoAlterUpdate('glnx')"
                      />
                    </td>
                    <th>连续工龄起算时间</th>
                    <td
                      colspan="4"
                      :class="[personForm.glnx_qssj_look == '1' && personForm.glnx_qssj_edit == '1' ? 'ltpAudit': 'ltpLook',]"
                    >
                      <el-date-picker
                        :readonly="personForm.glnx_qssj_look == '1' && personForm.glnx_qssj_edit == '1' ? false : true"
                        v-model="personForm.glnx_qssj"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                        @change="cadreInfoAlterUpdate('glnx_qssj')"
                      >
                      </el-date-picker>
                    </td>
                    <th>工龄说明</th>
                    <td colspan="4">
                      <el-input
                        v-model="personForm.glnx_shuoming"
                        :class="[personForm.glnx_shuoming_look == '1' && personForm.glnx_shuoming_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        :readonly="personForm.glnx_shuoming_look == '1' && personForm.glnx_shuoming_edit == '1' ? false : true"
                        placeholder="请输入"
                        @change="cadreInfoAlterUpdate('glnx_shuoming')"
                      />
                    </td>
                  </tr>
                  <tr>
                    <th>扣除工龄起始时间</th>
                    <td
                      colspan="3"
                      style="
                                              border-right: none;
                                              padding-left: 10px;
                                          "
                      :class="[personForm.glnx_kcqssj_look == '1' && personForm.glnx_kcqssj_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-date-picker
                        :readonly="personForm.glnx_kcqssj_look == '1' && personForm.glnx_kcqssj_edit == '1' ? false : true"
                        v-model="personForm.glnx_kcqssj"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                        @change="cadreInfoAlterUpdate('glnx_kcqssj')"
                      >
                      </el-date-picker>
                    </td>
                    <th>扣除工龄截止时间</th>
                    <td
                      colspan="4"
                      :class="[personForm.glnx_kcjzsj_look == '1' && personForm.glnx_kcjzsj_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <el-date-picker
                        :readonly="personForm.glnx_kcjzsj_look == '1' && personForm.glnx_kcjzsj_edit == '1' ? false : true"
                        v-model="personForm.glnx_kcjzsj"
                        type="month"
                        format="yyyy.MM"
                        value-format="yyyy.MM"
                        placeholder="请选择"
                        style="width: 100%"
                        :picker-options="checkTime"
                        @change="cadreInfoAlterUpdate('glnx_kcjzsj')"
                      >
                      </el-date-picker>
                    </td>
                    <th>扣除工龄年限</th>
                    <td colspan="4">
                      <el-input
                        v-model="personForm.glnx_kc"
                        :class="[personForm.glnx_kc_look == '1' && personForm.glnx_kc_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        :readonly="personForm.glnx_kc_look == '1' && personForm.glnx_kc_edit == '1' ? false : true"
                        placeholder="请输入"
                        @change="cadreInfoAlterUpdate('glnx_kc')"
                      />
                    </td>
                  </tr>
                  <tr>
                    <th>归侨归眷</th>
                    <td
                      colspan="3"
                      style="
                                              border-right: none;
                                              padding-left: 10px;
                                          "
                      :class="[personForm.qiaojuan_look == '1' && personForm.qiaojuan_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <!-- <el-checkbox v-model="personForm.lngzjl_bz" :disabled="personForm.lngzjl_bz_look == '1'&&personForm.lngzjl_bz_edit == '1'?false:true" @change="cadreInfoAlterUpdate('lngzjl_bz')">具有两年以上基层工作经历</el-checkbox> -->
                      <el-radio-group
                        v-model="personForm.qiaojuan"
                        :disabled="personForm.qiaojuan_look == '1' && personForm.qiaojuan_edit == '1' ? false : true"
                        @change="cadreInfoAlterUpdate('qiaojuan')"
                      >
                        <el-radio :label="1">是</el-radio>
                        <el-radio :label="0">否</el-radio>
                      </el-radio-group>
                    </td>
                    <!-- <th>人员状态</th>
                      <td colspan="4" :class="[personForm.glzt_look == '1'&&personForm.glzt_edit == '1'?'ltpAudit':'ltpLook']">
                        <el-popover ref="glztPopover" placement="bottom-start" width="300" :disabled="personForm.glzt_look == '1'&&personForm.glzt_edit == '1'?false:true" trigger="click" @show="popoverClick('ZB126')">
                          <commonDictRadio ref="glztSlot" @popoverCallBack="popoverCallBack"></commonDictRadio>
                          <el-input v-model="personForm.glzt" slot="reference" placeholder="请点击选择" readonly/>
                        </el-popover>
                      </td> -->
                    <td colspan="5"></td>
                  </tr>
                  <tr>
                    <th>熟悉领域</th>
                    <td
                      colspan="13"
                      :class="[personForm.sxly_look == '1' && personForm.sxly_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                    >
                      <div>
                        <el-input
                          v-model="personForm.sxly"
                          slot="reference"
                          placeholder="请点击选择"
                          readonly
                        />
                      </div>
                      <sxly
                        ref="sxlyRef"
                        @setSxly="setSxly"
                      ></sxly>
                    </td>
                  </tr>
                  <tr style="height: 80px">
                    <th>代表委员情况综述</th>
                    <td colspan="13"  :class="[personForm.personDeputyLook == '1' && personForm.personDeputy == '1' ? 'ltpAudit' : 'ltpLook',]">
                      <el-input :rows="3" type="textarea" v-model="personForm.ry_dbwy_zs"
                                slot="reference" readonly />
                    </td>
                  </tr>
                </table>
                <div style="width: 100%">
                  
                </div>
              </el-tab-pane>
            </el-tabs>
          </div>
          <div style="width: 28%; float: right">
            <el-tabs
              v-model="activeName1"
              type="border-card"
              class="content-height-right"
            >
              <el-tab-pane
                label="其他信息"
                name="rightTab"
                style="height: 100%"
              >
                <div
                  class="content-height-table"
                  style="overflow-y: auto"
                >
                  <table
                    class="el-table__body el-table--border
                           ltp-table-right
                           border"
                    style="
                                          width: 100%;
                                          border-collapse: collapse;
                                      "
                  >
                    <tr>
                      <th>
                        身份证号<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td
                        @dblclick="updateIdCard"
                        v-if="title === '人员修改'"
                      >
                        <div
                          :class="[personForm.sfzh_look == '1' && personForm.sfzh_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-input
                            v-model="personForm.sfzh == '无' ? '' : personForm.sfzh"
                            placeholder="请选择"
                            :readonly="true"
                            v-if="personForm.sf_sfzh_sh == '1'"
                          />
                          <el-input
                            v-model="personForm.sfzh == '无' ? '' : personForm.sfzh"
                            placeholder="请选择"
                            :readonly="true"
                            v-else
                            @change="checkIdCard"
                          />
                        </div>
                      </td>
                      <td v-else>
                        <el-input
                          v-model="personForm.sfzh"
                          placeholder="请输入"
                          @change="checkIdCard"
                        />
                      </td>
                      <td style="width: 25px">
                        <i
                          v-if="personForm.sf_sfzh_sh == '1'"
                          title="身份证号已核实，不可修改"
                          class="ym-custom ym-custom-check-circle"
                          style="color: green"
                        ></i>
                        <i
                          v-else
                          title="未核实"
                          class="ym-custom ym-custom-help-circle"
                          style="color: orange"
                        ></i>
                      </td>
                    </tr>
                    <tr>
                      <th>
                        手机号
                        <!-- <span style="color: red">*</span> -->
                      </th>
                      <td>
                        <el-input
                          v-model="personForm.shouji"
                          :class="[personForm.shouji_look == '1' && personForm.shouji_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                          :readonly="personForm.shouji_look == '1' && personForm.shouji_edit == '1' ? false : true"
                          placeholder="请输入"
                          @blur="cadreInfoAlterUpdate('shouji')"
                        />
                      </td>
                      <td style="width: 25px">
                        <i
                          title="未校核"
                          class="ym-custom ym-custom-help-circle"
                          style="color: orange"
                        ></i>
                      </td>
                    </tr>
                    <tr>
                      <th>公务员登记<br />时间</th>
                      <td>
                        <el-date-picker
                          :class="[personForm.gwydjsj_look == '1' && personForm.gwydjsj_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                          :readonly="personForm.gwydjsj_look == '1' && personForm.gwydjsj_edit == '1' ? false : true"
                          v-model="personForm.gwydjsj"
                          type="month"
                          format="yyyy.MM"
                          value-format="yyyy.MM"
                          placeholder="请选择"
                          style="width: 100%"
                          :picker-options="checkTime"
                          @change="cadreInfoAlterUpdate('gwydjsj')"
                        >
                        </el-date-picker>
                      </td>
                    </tr>
                    <tr>
                      <th>
                        职位类别<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.zhiweileibie_mingcheng_look == '1' && personForm.zhiweileibie_mingcheng_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-popover
                            ref="zhiweiPopover"
                            :popper-options="{boundariesElement: 'body', gpuAcceleration: true,}"
                            placement="bottom"
                            width="300"
                            :disabled="personForm.zhiweileibie_mingcheng_look == '1' && personForm.zhiweileibie_mingcheng_edit == '1' ? false : true"
                            trigger="click"
                            @show="popoverClick('XZ93')"
                          >
                            <treeDictRadio
                              ref="zhiweiSlot"
                              @popoverCallBack="popoverCallBack"
                            ></treeDictRadio>
                            <el-input
                              v-model="personForm.zhiweileibie_mingcheng"
                              slot="reference"
                              placeholder="请点击选择"
                              readonly
                            />
                          </el-popover>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <th>
                        人员类别<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.rylb_look == '1' && personForm.rylb_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-popover
                            ref="rylbPopover"
                            placement="bottom"
                            width="300"
                            :disabled="personForm.rylb_look == '1' && personForm.rylb_edit == '1' ? false : true"
                            trigger="click"
                            @show="popoverClick('ZB125')"
                          >
                            <commonDictRadio
                              ref="rylbSlot"
                              @popoverCallBack="popoverCallBack"
                            ></commonDictRadio>
                            <el-input
                              v-model="personForm.rylb"
                              slot="reference"
                              placeholder="请点击选择"
                              readonly
                            />
                          </el-popover>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <th>编制类型</th>
                      <td>
                        <div
                          :class="[personForm.bzlx_look == '1' && personForm.bzlx_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-popover
                            ref="bzlxPopover"
                            placement="bottom"
                            width="300"
                            :disabled="personForm.bzlx_look == '1' && personForm.bzlx_edit == '1' ? false : true"
                            trigger="click"
                            @show="popoverClick('ZB135')"
                          >
                            <commonDictRadio
                              ref="bzlxSlot"
                              @popoverCallBack="popoverCallBack"
                            ></commonDictRadio>
                            <el-input
                              v-model="personForm.bzlx"
                              slot="reference"
                              placeholder="请点击选择"
                              readonly
                            />
                          </el-popover>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <th>
                        管理类别<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.gllb_look == '1' && personForm.gllb_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <!-- <el-popover ref="gllbPopover" placement="bottom" width="300"
                                  :disabled="personForm.gllb_look == '1'&&personForm.gllb_edit == '1'?false:true"
                                  trigger="click" @show="popoverClick('DB201')"> -->
                          <el-popover
                            ref="gllbPopover"
                            placement="bottom"
                            width="300"
                            :disabled="personForm.gllb_look == '1' && personForm.gllb_edit == '1' ? false : true"
                            trigger="click"
                            @show="popoverClick('DB227')"
                          >
                            <treeDictRadio
                              ref="gllbSlot"
                              @popoverCallBack="popoverCallBack"
                            ></treeDictRadio>
                            <el-input
                              v-model="personForm.gllb"
                              slot="reference"
                              placeholder="请点击选择"
                              readonly
                            />
                          </el-popover>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <th>专业技术职务</th>
                      <td @dblclick="getProfession">
                        <div
                          :class="[personForm.zyjszw_look == '1' && personForm.zyjszw_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-input
                            v-model="personForm.zyjszw"
                            readonly
                            placeholder="请选择"
                            @change="cadreInfoAlterUpdate('zyjszw')"
                          />
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <th>熟悉专业有何专长</th>
                      <td>
                        <el-input
                          v-model="personForm.zhuanyejishu"
                          :class="[personForm.zhuanyejishu_look == '1' && personForm.zhuanyejishu_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                          :readonly="personForm.zhuanyejishu_look == '1' && personForm.zhuanyejishu_edit == '1' ? false : true"
                          placeholder="请输入"
                          @blur="cadreInfoAlterUpdate('zhuanyejishu')"
                        />
                      </td>
                    </tr>
                    <tr>
                      <th>
                        编制关系所在单位<span
                        style="color: red"
                      >*</span
                      >
                      </th>
                      <td
                        @dblclick="chooseParentModule('xz')"
                      >
                        <div
                          :class="[personForm.xingzheng_jg_mingcheng_look == '1' && personForm.xingzheng_jg_mingcheng_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-input
                            v-model="personForm.xingzheng_jg_mingcheng"
                            readonly
                            placeholder="请选择"
                          />
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <th>统计关系所在单位</th>
                      <td
                        @dblclick="chooseParentModule('tj')"
                      >
                        <div
                          :class="[personForm.tongji_jg_mingcheng_look == '1' && personForm.tongji_jg_mingcheng_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-input
                            v-model="personForm.tongji_jg_mingcheng"
                            readonly
                            placeholder="请选择"
                          />
                        </div>
                      </td>
                    </tr>
  
                    <tr>
                      <th>
                        人员管理状态<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.glzt_look == '1' && personForm.glzt_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <!-- <el-popover ref="yyglztPopover" placement="top" width="300"
                            :disabled="personForm.glzt_look == '1'&&personForm.glzt_edit == '1'?false:true"
                            trigger="click" @show="popoverClick('ZB126')"> -->
                          <el-popover
                            ref="yyglztPopover"
                            placement="top"
                            width="300"
                            :disabled="personForm.glzt_look == '1' && personForm.glzt_edit == '1' ? false : true"
                            trigger="click"
                            @show="popoverClick('DB228')"
                          >
                            <commonDictRadio
                              ref="glztSlot1"
                              @popoverCallBack="popoverCallBack"
                            ></commonDictRadio>
                            <el-input
                              v-model="personForm.glzt"
                              slot="reference"
                              placeholder="请点击选择"
                              readonly
                            />
                          </el-popover>
                        </div>
                      </td>
                    </tr>
                    <tr v-show="personForm.glzt == '离任'">
                      <th>离任类型</th>
                      <td>
                        <div
                          :class="[personForm.tuichufangshi_mingcheng_look == '1' && personForm.tuichufangshi_mingcheng_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-popover
                            ref="lrlxztPopover"
                            placement="top"
                            width="300"
                            :disabled="personForm.tuichufangshi_mingcheng_look == '1' && personForm.tuichufangshi_mingcheng_edit == '1' ? false : true"
                            trigger="click"
                            @show="popoverClick('DB229')"
                          >
                            <commonDictRadio
                              ref="lrlxSlot"
                              @popoverCallBack="popoverCallBack"
                            ></commonDictRadio>
                            <el-input
                              v-model="personForm.tuichufangshi_mingcheng"
                              slot="reference"
                              placeholder="请点击选择"
                              readonly
                            />
                          </el-popover>
                        </div>
                      </td>
                    </tr>
  
                    <tr v-show="personForm.glzt == '离任'">
                      <th>
                        变动时间<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.glzt_biandongshijian_look == '1' && personForm.glzt_biandongshijian_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-date-picker
                            v-model="personForm.glzt_biandongshijian"
                            @change="selectTime"
                            type="month"
                            format="yyyy.MM"
                            value-format="yyyy.MM"
                            placeholder="请选择变动时间"
                            :disabled="personForm.glzt_biandongshijian_look == '1' && personForm.glzt_biandongshijian_edit == '1' ? false : true"
                          >
                          </el-date-picker>
                        </div>
                      </td>
                    </tr>
                    <tr v-show="personForm.glzt == '离任'">
                      <th>
                        变动原因<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.glzt_biandongyuanyin_look == '1' && personForm.glzt_biandongyuanyin_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-input
                            v-model="
                                                          personForm.glzt_biandongyuanyin
                                                      "
                            placeholder="请输入变动原因"
                            :readonly="personForm.glzt_biandongyuanyin_look == '1' && personForm.glzt_biandongyuanyin_edit == '1' ? false : true"
                            style="width: 100%"
                          ></el-input>
                        </div>
                      </td>
                    </tr>
  
                    <tr v-show="personForm.glzt == '离任'">
                      <th>
                        退休时间<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.tuichushijian_look == '1' && personForm.tuichushijian_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-date-picker
                            v-model="personForm.tuichushijian"
                            @change="selectTime"
                            type="month"
                            format="yyyy.MM"
                            value-format="yyyy.MM"
                            placeholder="请选择退休时间"
                            :disabled="personForm.tuichushijian_look == '1' && personForm.tuichushijian_edit == '1' ? false : true"
                          >
                          </el-date-picker>
                        </div>
                      </td>
                    </tr>
  
                    <tr v-show="personForm.glzt == '离任'">
                      <th>
                        退休文号<span style="color: red"
                      >*</span
                      >
                      </th>
                      <td>
                        <div
                          :class="[personForm.tuichuquxiang_look == '1' && personForm.tuichuquxiang_edit == '1' ? 'ltpAudit' : 'ltpLook',]"
                        >
                          <el-input
                            v-model="personForm.tuichuquxiang"
                            placeholder="请输入退休文号"
                            :readonly="personForm.tuichuquxiang_look == '1' && personForm.tuichuquxiang_edit == '1' ? false : true"
                            style="width: 100%"
                          ></el-input>
                        </div>
                      </td>
                    </tr>
  
                    <!-- 人员管理状态
      退出时间 -->
  
                    <!-- zb126 -->
                  </table>
                </div>
                <div style="width: 100%;    display: flex;justify-content: flex-end;">
                  <!-- <el-button v-if="this.isDeleted =='personNew'" type="primary" size="medium" plain @click="onTop">上一人</el-button>
                  <el-button v-if="this.isDeleted =='personNew'" type="primary" size="medium" plain @click="onBehind">下一人</el-button> -->
                  <el-button
                    style="margin: 10px 10px 10px 0;"
                    type="danger"
                    size="medium"
                    @click="closedRmb"
                  >取消</el-button
                  >
                  <el-button
                    v-if="this.personForm.personBase == '1'"
                    style=" margin: 10px 10px 10px 0;"
                    type="success"
                    size="medium"
                    @click="onSubmit"
                  >保存</el-button
                  >
                </div>
              </el-tab-pane>
            </el-tabs>
          </div>
        </el-form>
        <!-- </el-card> -->
      </div>
      <!-- 分管工作 -->
      <inChargeJob ref="dialogInChargeJobs" @onInChargeJob="onInChargeJob"></inChargeJob>
      <education
        ref="dialogEducation"
        @onEducationed="onEducationed"
      ></education>
      <post ref="dialogPost" @onPosted="onPosted"></post>
      <YEpost ref="dialogYEPost" @onYEPosted="onYEPosted"></YEpost>
      <rank ref="dialogRank" @onRanked="onRanked"></rank>
      <assessment
        ref="dialogAssessment"
        @onAssessmented="onAssessmented"
      ></assessment>
      <resumeDetail
        ref="dialogResumeDetail"
        @onResumeDetail="onResumeDetail"
      ></resumeDetail>
      <reward ref="dialogReward" @onReward="onReward"></reward>
      <deputy ref="dialogDeputy" @onDbwyqk="onDbwyqk"></deputy>
      <punishment
        ref="dialogPunishment"
        @onPunishment="onPunishment"
      ></punishment>
      <orgChooseTree
        ref="dialogTree"
        @onModuleChoosed="onModuleChoosed"
      ></orgChooseTree>
      <idCardUpdate
        ref="dialogIdCard"
        @onGetIdCard="onGetIdCard"
      ></idCardUpdate>
      <zzmm ref="dialogZzmm" @onZzmm="onZzmm"></zzmm>
      <job ref="dialogJob" @onJob="onJob"></job>
      <archives ref="dialogArchives" @onArchives="onArchives"></archives>
      <train ref="dialogTrain" @onInChargeJob="onInChargeJob"></train>
      <attach ref="dialogAttach" @onInChargeJob="onInChargeJob"></attach>
      <profession
        ref="dialogProfession"
        @onProfession="onProfession"
      ></profession>
      <el-dialog
        title="健康状况描述"
        :visible="centerDialogVisible"
        width="30%"
        height="500px"
        center
        class="eldialog"
        :close-on-click-modal="false"
        append-to-body
        @close="centerDialogVisible = false"
      >
        <el-form style="height: 130px">
          <el-row
            style="
                          background: #fff;
                          padding: 2px 10px;
                          margin-top: 10px;
                      "
            class="pt-2 pb-2 pl-3 pr-3"
          >
            <el-col :span="24">
              <el-form-item label="健康状况描述" label-width="120px">
                <el-input
                  v-model="personForm.jiankang_xx"
                  type="textarea"
                  style="width: 95%"
                  :rows="5"
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
        <span
          slot="footer"
          class="dialog-footer"
          style="display: inline-block; margin-bottom: 10px"
        >
                  <el-button @click="centerDialogVisible = false"
                  >取 消</el-button
                  >
                  <el-button
                    type="primary"
                    @click="cadreInfoAlterUpdate('jiankang')"
                  >确 定</el-button
                  >
              </span>
      </el-dialog>
    </el-dialog>
  </template>
  
  <script>
  import store from "@/store";
  import webapp from "@/config/webapp";
  import YEpost from "@/views/datacentersg/person/personYEPost/YEpost";
  import commonDictRadio from "@/views/datacentersg/common/commonDictRadio";
  import treeDictRadio from "@/views/datacentersg/common/treeDictRadio";
  import orgChooseTree from "@/views/datacentersg/common/orgChooseTreeLazy";
  import zzmm from "@/views/datacentersg/person/base/zzmmAddOrUpdate";
  import idCardUpdate from "@/views/datacentersg/person/base/idCardUpdate";
  import education from "@/views/datacentersg/person/education/education";
  import post from "@/views/datacentersg/person/post/post";
  import profession from "@/views/datacentersg/person/profession/profession";
  import rank from "@/views/datacentersg/person/rank/rank";
  import assessment from "@/views/datacentersg/person/assessment/assessment";
  import resumeDetail from "@/views/datacentersg/person/resume/resumeDetail";
  import deputy from '@/views/datacentersg/person/personDeputy/deputy'
  import reward from "@/views/datacentersg/person/reward/reward";
  import punishment from "@/views/datacentersg/person/punishment/punishment";
  import job from "@/views/datacentersg/person/job/job";
  import family from "@/views/datacentersg/person/family/familyRmb";
  import archives from "@/views/datacentersg/person/archives/archives";
  import train from "@/views/datacentersg/person/train/train";
  import attach from "@/views/datacentersg/person/attach/attach";
  import sxly from "@/views/datacentersg/person/sxly/index"; //熟悉领域
  import inChargeJob from "@/views/datacentersg/person/inChargeJob/index"; //分管工作
  import { getDictionary } from "@/api/datacentersg/dictionary/dictionary";
  import {
    addGatherData,
    updateGatherData,
    // getPerson,
    updatePerson,
    cadreInfoAlter,
    addBlankPerson,
    getRole,
  } from "@/api/datacentersg/person/person";
  import {getPersonss,getFamilyListss} from "@/api/students/organization/consult";//单独将人员详情和家庭成员详情拿到了
  // import { getFamilyListss } from "@/api/datacentersg/person/personFamily";
  import { updateJobOutputCheck } from "@/api/datacentersg/person/personJob";
  import { showLoading, hideLoading } from "@/util/loading";
  import {updateBaseDeputy} from "@/api/datacentersg/person/personDeputy";
  
  const vaildateSfzh = (rule, value, callback) => {
    const personJsons = {
      userId: store.getters.user_id.toString(),
      token: store.getters.token.toString(),
      system: "datacenter",
      data: {
        sfzh: value,
      },
    };
    getPersonss(personJsons).then((response) => {
      if (response.code === 200621) {
        callback();
      } else {
        if (response.resultdata.sfzh === value) {
          callback();
        } else {
          callback(new Error("身份证号已存在，请核实后添加"));
        }
      }
    });
  };
  
  export default {
    name: "personRmb",
    components: {
      profession,
      post,
      YEpost,
      rank,
      assessment,
      resumeDetail,
      reward,
      deputy,
      job,
      education,
      orgChooseTree,
      family,
      zzmm,
      punishment,
      idCardUpdate,
      commonDictRadio,
      treeDictRadio,
      archives,
      train,
      attach,
      sxly,
      inChargeJob,
      // SelectTree
    },
    data() {
      return {
        isDeleted: '',
        person_id:'',
        activeName: "first",
        activeName1: "rightTab",
        loading: true,
        jobIds: "",
        gxjg: "",
        title: "",
        centerDialogVisible: false,
        attachShow:true,
        uploadUrl: webapp.uploadUrl,
        // imageUrl: 'http://192.168.1.13/group1/M00/00/00/wKgBDV68u6yAaaqwAAGUg855l9Q154.jpg',
        visible: false,
        type: "",
        zzmmForback: "",
        zzmm_dmForback: "",
        dedp_dm: "",
        dsdp_dm: "",
        checkTime: {
          disabledDate: (time) => {
            // 不能小于当前日期
            return time.getTime() > Date.now() - 8.64e7; // 加- 8.64e7则表示包当天
          },
        },
        personEdit:1,
        personForm: {
          yezwcc_banben: "",
          yezwcc_bianma: "",
          yezwcc_mc: "",
          yezwcc_mc_edit: "1",
          yezwcc_mc_look: "1",
          yezwcc_sj: "",
          glzt_dm: "", //人员管理状态
          tcyy: "", //退出原因
          zhaopian: "",
          zhaopian_edit: "1",
          zhaopian_look: "1",
          person_id: "",
          rudangxinxi: "",
          rudangxinxiForLook: "",
          rudangxinxi_edit: "1",
          rudangxinxi_look: "1",
          xingming: "",
          xingming_edit: "1",
          xingming_look: "1",
          xingbie: "",
          xingbie_edit: "1",
          xingbie_look: "1",
          xingbie_dm: "",
          csny: "",
          csny_edit: "1",
          csny_look: "1",
          minzu_dm: "",
          minzu_mc: "",
          minzu_mc_edit: "1",
          minzu_mc_look: "1",
          jiguan: "",
          jiguan_edit: "1",
          jiguan_look: "1",
          jiguan_dm: "",
          chushengdi: "",
          chushengdi_edit: "1",
          chushengdi_look: "1",
          chushengdi_dm: "",
          chengzhangdi: "",
          chengzhangdi_dm: "",
          zhiweileibie_mingcheng: "",
          zhiweileibie_mingcheng_edit: "1",
          zhiweileibie_mingcheng_look: "1",
          rdsj: "",
          rdsjForLook: "",
          rdsj_edit: "1",
          rdsj_look: "1",
          cjgzsj: "",
          cjgzsj_edit: "1",
          cjgzsj_look: "1",
          jiankang_look: "1",
          jiankang_edit: "1",
          klsj: "",
          klsj_edit: "1",
          klsj_look: "1",
          jiankang: "",
          jiankang_xx: "",
          jiankang_xx_edit: "1",
          jiankang_xx_look: "1",
          sfzh: "",
          sfzh_edit: "1",
          sfzh_look: "1",
          gwydjsj: "",
          gwydjsj_edit: "1",
          gwydjsj_look: "1",
          xuandiaoriqi: "",
          xuandiaoriqi_edit: "1",
          xuandiaoriqi_look: "1",
          zhiwu_quancheng: "",
          zhiwu_jiancheng: "",
          tongji_jg_id: "",
          tongji_jg_mingcheng: "",
          tongji_jg_mingcheng_edit: "1",
          tongji_jg_mingcheng_look: "1",
          xingzheng_jg_id: "",
          xingzheng_jg_mingcheng: "",
          xingzheng_jg_mingcheng_edit: "1",
          xingzheng_jg_mingcheng_look: "1",
          gongzi_jg_id: "",
          gongzi_jg_mingcheng: "",
          zzmm: "",
          zzmm_dm: "",
          dedp_dm: "",
          dedp: "",
          dsdp_dm: "",
          dsdp: "",
          dedp_rdsj: "",
          dsdp_rdsj: "",
          shouji: "",
          shouji_edit: "1",
          shouji_look: "1",
          zyjszw: "",
          zyjszw_edit: "1",
          zyjszw_look: "1",
          zhuanyejishu: "",
          zhuanyejishu_edit: "1",
          zhuanyejishu_look: "1",
          qrzxl_zg: "",
          qrzxlxx_zg: "",
          qrzxw_zg: "",
          qrzxwxx_zg: "",
          zzxl_zg: "",
          zzxlxx_zg: "",
          zzxw_zg: "",
          zzxwxx_zg: "",
          zwcc_dm: "",
          zwcc: "",
          zwcc_sj: "",
          zjcc_dm: "",
          zjcc_mc: "",
          zjcc_sj: "",
          lxzwcj_sj: "",
          zwlb: "",
          zwlb_dm: "",
          gllb: "",
          gllb_edit: "1",
          gllb_look: "1",
          gllb_dm: "",
          rylb: "",
          rylb_edit: "1",
          rylb_look: "1",
          rylb_dm: "",
          baoliudaiyudaima: "",
          zhiweileibie_dm: "",
          lngzjl_bz: "",
          lngzjl_bz_edit: "1",
          lngzjl_bz_look: "1",
          jinjinpingshikaohe: "",
          jinjinpingshikaohe_edit: "1",
          jinjinpingshikaohe_look: "1",
          sfkl: "",
          sfkl_edit: "1",
          sfkl_look: "1",
          fggz:'',
          fggz_edit:'1',
          fggz_look:'1',
          shifouxuandiao: "",
          shifouxuandiao_edit: "1",
          shifouxuandiao_look: "1",
          bzlx: "",
          bzlx_edit: "1",
          bzlx_look: "1",
          bzlx_dm: "",
          jianli: "",
          jianli_jingjian: "",
          gzjb_dm: "",
          gzjb: "",
          gzjb_edit: "1",
          gzjb_look: "1",
          zyjs_dm: "",
          zyjs_mingcheng: "",
          zyjs_mingcheng_edit: "1",
          zyjs_mingcheng_look: "1",
          jl: "",
          cf: "",
          kaohe: "",
          zw_sj: "",
          baoliudaiyumingcheng: "",
          baoliudaiyumingcheng_look: "1",
          baoliudaiyumingcheng_edit: "1",
          personBase: "1",
          personJob: "1",
          personEducation: "1",
          personPost: "1",
          personYepost: "1",
          personRank: "1",
          personResume: "1",
          personAssessment: "1",
          personPunishment: "1",
          personReward: "1",
          personFamily: "1",
          personProfession: "1",
          personBaseLook: "1",
          personJobLook: "1",
          personEducationLook: "1",
          personPostLook: "1",
          personYepostLook: "1",
          personRankLook: "1",
          personResumeLook: "1",
          personAssessmentLook: "1",
          personPunishmentLook: "1",
          personDeputy: "1",
          personDeputyLook :"1",
          personRewardLook: "1",
          personFamilyLook: "1",
          personProfessionLook: "1",
          glnx: "",
          glnx_edit: "1",
          glnx_look: "1",
          glnx_qssj: "",
          glnx_qssj_edit: "1",
          glnx_qssj_look: "1",
          glnx_kcqssj: "",
          glnx_kcqssj_edit: "1",
          glnx_kcqssj_look: "1",
          glnx_kcjzsj: "",
          glnx_kcjzsj_edit: "1",
          glnx_kcjzsj_look: "1",
          personTrainLook: "1",
          personArchivesLook: "1",
          personAttachLook: "1",
          glnx_kc: "",
          glnx_kc_edit: "1",
          glnx_kc_look: "1",
          glnx_shuoming: "",
          glnx_shuoming_edit: "1",
          glnx_shuoming_look: "1",
          qiaojuan: "",
          qiaojuan_edit: "1",
          qiaojuan_look: "1",
          sxly: "",
          sxly_look: "1",
          sxly_edit: "1",
          tuichufangshi_mingcheng: "",
          tuichufangshi_mingcheng_edit: "1",
          tuichufangshi_mingcheng_look: "1",
          tuichushijian: "",
          tuichushijian_edit: "1",
          tuichushijian_look: "1",
          tuichuquxiang: "",
          tuichuquxiang_edit: "1",
          tuichuquxiang_look: "1",
          glzt_biandongshijian: "",
          glzt_biandongshijian_edit: "1",
          glzt_biandongshijian_look: "1",
          glzt_biandongyuanyin: "",
          glzt_biandongyuanyin_edit: "1",
          glzt_biandongyuanyin_look: "1",
        },
        personRules: {
          xingming: [
            {
              required: true,
              message: "姓名不可为空",
              trigger: "blur",
            },
          ],
          sfzh: [
            {
              required: true,
              message: "身份证号不可为空",
              trigger: "blur",
            },
            {
              validator: vaildateSfzh,
              message: "身份证号已存在，请核实后添加",
              trigger: "change",
            },
          ],
          zhiwu_jiancheng: [
            {
              required: true,
              message: "请维护职务信息",
              trigger: "blur",
            },
          ],
        },
        xingbieOptions: [],
        minzuOptions: [],
        jiankangOptions: [],
        zzmmOptions: [],
        dedpOptions: [],
        dsdpOptions: [],
        rylbOptions: [],
        zwlbOption: [],
        bldyOption: [],
        glztOptions: [],
        gllbOptions: [],
        bzlxOptions: [],
        educationId: [],
        zhyjs_fmingchengs: "",
        props: {
          // 配置项（必选）
          value: "id",
          label: "name",
          children: "children",
          // disabled:true
        },
        restaurants: [
          { value: "健康" },
          { value: "一般" },
          { value: "较差" },
        ],
      };
    },
    mounted() {},
    computed: {
      /* 转树形数据 */
      optionData() {
        let cloneData = JSON.parse(JSON.stringify(this.jiankangOptions)); // 对源数据深度克隆
        return cloneData.filter((father) => {
          // 循环所有项，并添加children属性
          let branchArr = cloneData.filter(
            (child) => father.code === child.parentId
          ); // 返回每一项的子级数组
          branchArr.length > 0 ? (father.children = branchArr) : ""; //给父级添加一个children属性，并赋值
          return father.parentId === -1; //返回第一层
        });
      },
    },
    methods: {
      onDbwyqk (row) {
        if (
          row != null &&
          row.ry_dbwy_zs !== ''
        ) {
          this.$set(this.personForm, "ry_dbwy_zs", row.ry_dbwy_zs);
          this.$set(this.personForm, "ry_dbsf_zs", row.ry_dbsf_zs);
        } else {
          this.personForm.ry_dbwy_zs = "";
          this.personForm.ry_dbsf_zs = "";
        }
        const personJsons = {
          'userId': store.getters.user_id.toString(),
          'token': store.getters.token.toString(),
          'system': 'datacenter',
          'data': {
            person_id: this.personForm.person_id,
            ry_dbwy_zs: this.personForm.ry_dbwy_zs,
            ry_dbsf_zs: this.personForm.ry_dbsf_zs,
          }
        }
        updateBaseDeputy(personJsons).then(response => {
          if (response.result) {
            this.$message.success(response.message)
          } else {
            this.$message.error(response.message)
          }
        })
      },
      async onYEPosted(row) {
        if (
          row != null &&
          row.zhiwu_zhuangtai !== 0 &&
          row.zhiwu_zhuangtai !== "0"
        ) {
          this.$set(this.personForm, "yezwcc_mc", row.ye_zwcc_mc);
          this.$set(this.personForm, "yezwcc_bianma", row.ye_zwcc_dm);
          this.$set(this.personForm, "yezwcc_sj", row.ye_zwcc_pzrq);
        } else {
          this.personForm.yezwcc_mc = "";
          this.personForm.yezwcc_bianma = "";
          this.personForm.yezwcc_sj = null;
        }
  
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            yezwcc_mc: this.personForm.yezwcc_mc,
            yezwcc_bianma: this.personForm.yezwcc_bianma,
            yezwcc_sj: this.personForm.yezwcc_sj,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      getYEPost() {
        if (this.personForm.personYepostLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personYepost;
            this.$refs.dialogYEPost.init(
              this.personForm.person_id,
              sfbj
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      // 选择退休时间
      selectTime() {
        this.cadreInfoAlterUpdate("glzt");
      },
      // 分管工作
      getFg() {
        if (this.personForm.personWorkLook == "0") {
          this.$message.warning("没有查看权限！");
        }else{
          if (this.personForm.person_id) {
            const that = this;
            that.$nextTick(() => {
              that.$refs.dialogInChargeJobs.init(this.personForm.person_id,this.personForm.personWork);
            });
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      // 获取分管工作列表
      // getinChargeJobData(person_id) {
      //   console.log(person_id)
      //   let that = this
      //   if (person_id) {
  
      //     that.$nextTick(() => {
      //       that.$refs.dialogInChargeJobs.init(person_id);
  
      //     })
      //   } else {
      //     this.$message.error("请先完成人员基本信息维护！");
      //   }
      // },
      popoverCallBack(row, dict) {
        if (dict == "GB2261") {
          if (row.detailCode == "") {
            this.personForm.xingbie = "";
            this.personForm.xingbie_dm = "";
          } else {
            this.personForm.xingbie = row.detailName;
            this.personForm.xingbie_dm = row.detailCode;
          }
          this.$refs.xingbiePopover.showPopper = false;
          this.cadreInfoAlterUpdate("xingbie");
        } else if (dict == "XZ93") {
          if (row.detailCode == "") {
            this.personForm.zhiweileibie_dm = "";
            this.personForm.zhiweileibie_mingcheng = "";
          } else {
            this.personForm.zhiweileibie_mingcheng = row.detailName;
            this.personForm.zhiweileibie_dm = row.detailCode;
          }
          this.$refs.zhiweiPopover.showPopper = false;
          this.cadreInfoAlterUpdate("zhiweileibie");
        } else if (dict == "DB100") {
          if (this.DB100Value == "jiguan") {
            if (row.detailCode == "") {
              this.personForm.jiguan = "";
              this.personForm.jiguan_dm = "";
            } else {
              this.personForm.jiguan = row.detailFullName;
              this.personForm.jiguan_dm = row.detailCode;
            }
            this.$refs.jiguanPopover.showPopper = false;
            this.cadreInfoAlterUpdate("jiguan");
          } else {
            if (row.detailCode == "") {
              this.personForm.chushengdi = "";
              this.personForm.chushengdi_dm = "";
            } else {
              this.personForm.chushengdi = row.detailFullName;
              this.personForm.chushengdi_dm = row.detailCode;
            }
            this.$refs.chushengdiPopover.showPopper = false;
            this.cadreInfoAlterUpdate("chushengdi");
          }
        } else if (dict == "GB3304") {
          if (row.detailCode == "") {
            this.personForm.minzu_mc = "";
            this.personForm.minzu_dm = "";
          } else {
            this.personForm.minzu_mc = row.detailFullName;
            this.personForm.minzu_dm = row.detailCode;
          }
          this.$refs.minzuPopover.showPopper = false;
          this.cadreInfoAlterUpdate("minzu");
        } else if (dict == "DB228") {
          if (row.detailFullName == "在任") {
            this.personForm.tuichufangshi_dm = "";
            this.personForm.tuichufangshi_mingcheng = "";
            this.personForm.tuichushijian = "";
            this.personForm.tuichuquxiang = "";
            this.personForm.glzt_biandongshijian = "";
            this.personForm.glzt_biandongyuanyin = "";
          }
          // 切换离任是 判断职务是否为空
          // if(row.detailFullName == '离任') {
  
          //   if(this.personForm.zhiwu_jiancheng != '') {
          //     this.$message.warning('请先免去所有在任职务，再选择离任')
          //     return
          //   }
          // }
          if (row.detailCode == "") {
            this.personForm.glzt = "";
            this.personForm.glzt_dm = "";
          } else {
            this.personForm.glzt = row.detailFullName;
            this.personForm.glzt_dm = row.detailCode;
          }
          // this.$refs.glztPopover.showPopper = false
          this.$refs.yyglztPopover.showPopper = false;
  
          this.cadreInfoAlterUpdate("glzt");
        } else if (dict == "DB229") {
          if (row.detailCode == "") {
            this.personForm.tuichufangshi_mingcheng = "";
            this.personForm.tuichufangshi_mingcheng_dm = "";
          } else {
            this.personForm.tuichufangshi_mingcheng =
              row.detailFullName;
            this.personForm.tuichufangshi_mingcheng_dm = row.detailCode;
          }
          this.$refs.lrlxztPopover.showPopper = false;
          // this.$refs.yyglztPopover.showPopper = false
          // 不是退休人员 将退休时间清空
          // if(this.personForm.glzt_dm != '3') {
          //     this.personForm.tuichushijian = null;
          // }
          this.cadreInfoAlterUpdate("lrlx");
        } else if (dict == "ZB125") {
          if (row.detailCode == "") {
            this.personForm.rylb = "";
            this.personForm.rylb_dm = "";
          } else {
            this.personForm.rylb = row.detailFullName;
            this.personForm.rylb_dm = row.detailCode;
          }
          this.$refs.rylbPopover.showPopper = false;
          this.cadreInfoAlterUpdate("rylb");
        } else if (dict == "ZB135") {
          if (row.detailCode == "") {
            this.personForm.bzlx = "";
            this.personForm.bzlx_dm = "";
          } else {
            this.personForm.bzlx = row.detailFullName;
            this.personForm.bzlx_dm = row.detailCode;
          }
          this.$refs.bzlxPopover.showPopper = false;
          this.cadreInfoAlterUpdate("bzlx");
        } else if (dict == "DB227") {
          if (row.detailCode == "") {
            this.personForm.gllb = "";
            this.personForm.gllb_dm = "";
          } else {
            this.personForm.gllb = row.detailFullName;
            this.personForm.gllb_dm = row.detailCode;
          }
          this.$refs.gllbPopover.showPopper = false;
          this.cadreInfoAlterUpdate("gllb");
        } else if (dict == "XZ91") {
          if (row.detailCode == "") {
            this.personForm.baoliudaiyumingcheng = "";
            this.personForm.baoliudaiyudaima = "";
          } else {
            this.personForm.baoliudaiyumingcheng = row.detailFullName;
            this.personForm.baoliudaiyudaima = row.detailCode;
          }
          this.$refs.baoliudaiyuPopover.showPopper = false;
          this.cadreInfoAlterUpdate("baoliudaiyu");
        } else if (dict == "ZB134") {
          if (row.detailCode == "") {
            this.personForm.gzjb = "";
            this.personForm.gzjb_dm = "";
          } else {
            this.personForm.gzjb = row.detailFullName;
            this.personForm.gzjb_dm = row.detailCode;
          }
          this.$refs.gzjbPopover.showPopper = false;
          this.cadreInfoAlterUpdate("gzjb");
        } else if (dict == "ZB139") {
          if (row.detailCode == "") {
            this.personForm.zyjs_mingcheng = "";
            this.personForm.zyjs_dm = "";
          } else {
            this.personForm.zyjs_mingcheng = row.detailFullName;
            this.personForm.zyjs_dm = row.detailCode;
          }
          this.$refs.zyjsPopover.showPopper = false;
          this.cadreInfoAlterUpdate("zyjs");
        } else if (dict == "GB2261D") {
          if (row.detailCode == "") {
            this.personForm.jiankang = "";
            this.personForm.jiankang_dm = "";
          } else {
            this.personForm.jiankang = row.detailFullName;
            this.personForm.jiankang_dm = row.detailCode;
          }
          this.$refs.jiankangPopover.showPopper = false;
          this.cadreInfoAlterUpdate("jiankang");
        }
      },
      getArchives() {
        if (this.personForm.personArchivesLook != "1") {
          this.$message.warning("没有查看权限");
          return;
        }
        this.$refs.dialogArchives.initData(this.personForm.person_id);
      },
      getTrain() {
        if (this.personForm.personTrainLook != "1") {
          this.$message.warning("没有查看权限");
          return;
        }else{
          this.$refs.dialogTrain.init(this.personForm.person_id, this.personForm.personTrain);
        }
      },
      getAttach() {
        if (this.personForm.personAttachLook != "1") {
          this.$message.warning("没有查看权限");
          return;
        }else{
          this.$refs.dialogAttach.init(this.personForm.person_id, this.personForm.personAttach);
        }
      },
      onArchives() {},
      popoverClick(dict) {
        if (dict == "GB2261") {
          this.$refs.xingbieSlot.init(dict);
        } else if (dict == "XZ93") {
          this.$refs.zhiweiSlot.init(dict);
        } else if (dict == "jiguan" || dict == "chushengdi") {
          this.DB100Value = dict;
          dict = "DB100";
          if (this.DB100Value == "jiguan") {
            this.$refs.jiguanSlot.init(dict);
          } else {
            this.$refs.chushengdiSlot.init(dict);
          }
        } else if (dict == "GB3304") {
          this.$refs.minzuSlot.init(dict);
        } else if (dict == "ZB125") {
          this.$refs.rylbSlot.init(dict);
        } else if (dict == "ZB135") {
          this.$refs.bzlxSlot.init(dict);
        } else if (dict == "DB227") {
          this.$refs.gllbSlot.init(dict);
        } else if (dict == "XZ91") {
          this.$refs.baoliudaiyuSlot.init(dict);
        } else if (dict == "ZB134") {
          this.$refs.gzjbSlot.init(dict);
        } else if (dict == "ZB139") {
          this.$refs.zyjsSlot.init(dict);
        } else if (dict == "GB2261D") {
          this.$refs.jiankangSlot.init(dict);
        } else if (dict == "DB228") {
          // this.$refs.glztSlot.init(dict)
          this.$refs.glztSlot1.init(dict);
        } else if (dict == "DB229") {
          this.$refs.lrlxSlot.init(dict);
        } else if (dict == "DB225") {
          this.$refs.sxlyRef.init(dict, this.personForm.sxly);
          this.$refs.sxlyRef.dialogVisible = true;
        }
      },
      getFujian(jgId){
        const codeJsons = {
          'userId': store.getters.user_id.toString(),
          'token': store.getters.token.toString(),
          'system': 'officedo',
          'data': {
            'jgId': jgId
          }
        }
        getRole(codeJsons).then(response => {
          if (response.result) {
            if(response.resultdata){
              this.attachShow = true
            }else{
              this.personForm.personAttachLook = 0
              this.attachShow = false
            }
          } else {
            this.$message.error(response.message)
          }
        })
      },
      async initData(person_id, personEdit, title, isDeleted) {
        this.person_id = person_id
        this.personEdit = personEdit
        this.visible = true;
        this.title = title;
        if (isDeleted ) {
          this.isDeleted = isDeleted;
        } else {
          this.isDeleted = '';
        }
        showLoading();
        if (this.zzmmOptions.length === 0) {
          const codeJsons = {
            userId: store.getters.user_id.toString(),
            token: store.getters.token.toString(),
            system: "datacenter",
            data: {
              params: ["GB4762"],
            },
          };
          await getDictionary(codeJsons)
            .then((response) => {
              if (response.result) {
                this.zzmmOptions = response.resultdata.GB4762;
              } else {
                hideLoading();
                this.onClosed();
                this.$message.error(response.message);
              }
            })
            .catch(() => {
              hideLoading();
              this.visible = false;
            });
        }
        if (person_id != null && person_id !== "") {
          const personJsons = {
            userId: store.getters.user_id.toString(),
            token: store.getters.token.toString(),
            system: "datacenter",
            data: {
              person_id: person_id,
              personEdit: personEdit,
            },
          };
          await getPersonss(personJsons)
            .then((response) => {
              if (response.result) {
                if (response.resultdata.glnx == "-1") {
                  response.resultdata.glnx = "";
                }
                if (response.resultdata.glnx_kc == "-1") {
                  response.resultdata.glnx_kc = "";
                }
                this.personForm = response.resultdata;
                this.getFujian(this.personForm.xingzheng_jg_id)
                this.personForm.rudangxinxiForLook = this.personForm
                  .zzmm
                  ? this.personForm.zzmm +
                  (this.personForm.dedp
                    ? "," +
                    this.personForm.dedp +
                    (this.personForm.dsdp
                      ? "," + this.personForm.dsdp
                      : "")
                    : "")
                  : "";
                this.personForm.rdsjForLook = this.personForm.rdsj
                  ? this.personForm.rdsj
                    .replace("-", ".")
                    .substring(0, 7) +
                  (this.personForm.dedp_rdsj
                    ? "," +
                    this.personForm.dedp_rdsj
                      .replace("-", ".")
                      .substring(0, 7) +
                    (this.personForm.dsdp_rdsj
                      ? "," +
                      this.personForm.dsdp_rdsj
                        .replace("-", ".")
                        .substring(0, 7)
                      : "")
                    : "")
                  : "";
                // if(this.personForm.lngzjl_bz === 1){
                //   this.personForm.lngzjl_bz = true
                // }else{
                //   this.personForm.lngzjl_bz = false
                // }
                // if(this.personForm.shifouxuandiao === 1){
                //   this.personForm.shifouxuandiao = true
                // }else{
                //   this.personForm.shifouxuandiao = false
                // }
                // if(this.personForm.jinjinpingshikaohe === 1){
                //   this.personForm.jinjinpingshikaohe = true
                // }else{
                //   this.personForm.jinjinpingshikaohe = false
                // }
                // if(this.personForm.sfkl === 1){
                //   this.personForm.sfkl = true
                // }else{
                //   this.personForm.sfkl = false
                // }
                if (personEdit == "0") {
                  let personIsEdit = {
                    personJob: "0",
                    personEducation: "0",
                    personPost: "0",
                    personRank: "0",
                    personResume: "0",
                    personAssessment: "0",
                    personPunishment: "0",
                    personReward: "0",
                    personFamily: "0",
                    personProfession: "0",
                    personAttach: "0",
                    personTrain: "0",
                    personWork: "0",
                    personYepost: "0",
                  };
                  sessionStorage.setItem(
                    "personIsEdit",
                    JSON.stringify(personIsEdit)
                  );
                } else {
                  let personIsEdit = {
                    personJob: this.personForm.personJob,
                    personEducation:
                    this.personForm.personEducation,
                    personPost: this.personForm.personPost,
                    personRank: this.personForm.personRank,
                    personResume: this.personForm.personResume,
                    personAssessment:
                    this.personForm.personAssessment,
                    personPunishment:
                    this.personForm.personPunishment,
                    personReward: this.personForm.personReward,
                    personFamily: this.personForm.personFamily,
                    personProfession:
                    this.personForm.personProfession,
                    personAttach: this.personForm.personAttach,
                    personTrain: this.personForm.personTrain,
                    personWork: this.personForm.personWork,
                    personYepost: this.personForm.personYepost,
                  };
                  sessionStorage.setItem(
                    "personIsEdit",
                    JSON.stringify(personIsEdit)
                  );
                }
              } else {
                hideLoading();
                this.onClosed();
                this.$message.error(response.message);
              }
            })
            .catch(() => {
              hideLoading();
              this.visible = false;
            });
          const familyJsons = {
            userId: store.getters.user_id.toString(),
            token: store.getters.token.toString(),
            system: "datacenter",
            data: {
              person_id: this.personForm.person_id,
            },
          };
          await getFamilyListss(familyJsons)
            .then((response) => {
              if (response.result) {
                hideLoading();
                this.$refs.dialogFamily.personId =
                  this.personForm.person_id;
                if (this.personForm.personFamilyLook == "1") {
                  this.$refs.dialogFamily.tableData =
                    response.resultdata;
                  if (this.personForm.personFamily == "1") {
                    this.$refs.dialogFamily.sfbj =
                      this.personForm.personFamily;
                  } else {
                    this.$refs.dialogFamily.sfbj = "0";
                  }
                } else {
                  this.$refs.dialogFamily.tableData = [];
                  this.$refs.dialogFamily.sfbj = "0";
                }
              } else {
                hideLoading();
                this.onClosed();
                this.$message.error(response.message);
              }
            })
            .catch(() => {
              hideLoading();
            });
        } else {
          const personJsons = {
            userId: store.getters.user_id.toString(),
            token: store.getters.token.toString(),
            system: "datacenter",
          };
          await addBlankPerson(personJsons)
            .then((response) => {
              if (response.result) {
                hideLoading();
                this.personForm.person_id = response.resultdata.id;
                this.$refs.dialogFamily.tableData = [];
                this.$refs.dialogFamily.personId =
                  response.resultdata.id;
                let personIsEdit = {
                  personJob: "1",
                  personEducation: "1",
                  personPost: "1",
                  personRank: "1",
                  personResume: "1",
                  personAssessment: "1",
                  personPunishment: "1",
                  personReward: "1",
                  personFamily: "1",
                  personProfession: "1",
                  personAttach: "1",
                  personTrain: "1",
                  personWork: "1",
                  personYepost: "1",
                };
                sessionStorage.setItem(
                  "personIsEdit",
                  JSON.stringify(personIsEdit)
                );
              } else {
                hideLoading();
                this.onClosed();
                this.$message.error(response.message);
              }
            })
            .catch(() => {
              hideLoading();
            });
        }
      },
      onProfession(row) {
        if (row.length > 0) {
          this.personForm.zyjszw = "";
          this.zhyjs_fmingchengs = "";
          row.forEach((item) => {
            this.zhyjs_fmingchengs += item.zhyjs_fmingcheng + ",";
          });
          if (this.zhyjs_fmingchengs.length > 0) {
            this.zhyjs_fmingchengs = this.zhyjs_fmingchengs.substr(
              0,
              this.zhyjs_fmingchengs.length - 1
            );
          }
          this.personForm.zyjszw = this.zhyjs_fmingchengs;
        } else {
          this.personForm.zyjszw = "";
        }
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            zyjszw: this.personForm.zyjszw,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      getPersonMessage(sfzh) {
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            sfzh: sfzh,
          },
        };
        getPersonss(personJsons)
          .then((response) => {
            if (response.result) {
              this.personForm = response.resultdata;
              // if(this.personForm.lngzjl_bz === 1){
              //   this.personForm.lngzjl_bz = true
              // }else{
              //   this.personForm.lngzjl_bz = false
              // }
              // if(this.personForm.shifouxuandiao === 1){
              //   this.personForm.shifouxuandiao = true
              // }else{
              //   this.personForm.shifouxuandiao = false
              // }
              // if(this.personForm.jinjinpingshikaohe === 1){
              //   this.personForm.jinjinpingshikaohe = true
              // }else{
              //   this.personForm.jinjinpingshikaohe = false
              // }
              // if(this.personForm.sfkl === 1){
              //   this.personForm.sfkl = true
              // }else{
              //   this.personForm.sfkl = false
              // }
            } else {
              hideLoading();
              this.onClosed();
              this.$message.error(response.message);
            }
          })
          .catch(() => {
            hideLoading();
            this.visible = false;
          });
      },
      checkIdCard() {
        const reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
        if (
          this.personForm.sfzh === "" ||
          this.personForm.sfzh === undefined ||
          this.personForm.sfzh == null
        ) {
          this.$message.error("身份证号码不能为空");
        } else {
          if (
            !reg.test(this.personForm.sfzh) &&
            this.personForm.sfzh !== ""
          ) {
            this.$message.error("请输入正确的二代身份证号码");
          } else {
            this.personForm.sfzh = this.personForm.sfzh.replace(
              "x",
              "X"
            );
          }
        }
      },
      getParent(id, modules) {
        const parentMenu = [];
        modules.forEach((item) => {
          if (item.parentId === id) {
            const node = {
              label: item.detailName,
              value: item.detailCode,
              code: item.detailCode,
              children: [],
              parentId: item.parentId,
            };
            parentMenu.push(node);
            this.getChildMenu(node, modules);
          }
        });
        return parentMenu;
      },
      getChildMenu(node, modules) {
        const itemMenu = this.getParent(node.code, modules);
        node.children = itemMenu;
        if (itemMenu.length > 0) {
          itemMenu.forEach((node) => {
            this.getChildMenu(node, modules);
          });
        } else {
          node.children = null;
        }
      },
      getEducation() {
        if (this.personForm.personEducationLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personEducation;
            this.$refs.dialogEducation.initData(
              this.personForm.person_id,
              sfbj
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      async onEducationed(params) {
        // if (params.qrzxl !== '') {
        //   this.personForm.qrzxl_zg = params.qrzxl.jiaoyu_xueli
        //   this.personForm.qrzxlxx_zg = (params.qrzxl.jiaoyu_xuexiao != null && params.qrzxl.jiaoyu_xuexiao !== '' && params.qrzxl.jiaoyu_xuexiao !== undefined ? params.qrzxl.jiaoyu_xuexiao:'')  +
        //     (params.qrzxl.jiaoyu_yuanxi != null && params.qrzxl.jiaoyu_yuanxi !== '' && params.qrzxl.jiaoyu_yuanxi !== undefined ? params.qrzxl.jiaoyu_yuanxi: '') +
        //     (params.qrzxl.jiaoyu_zhuanye!= null && params.qrzxl.jiaoyu_zhuanye !== '' && params.qrzxl.jiaoyu_zhuanye !== undefined ? params.qrzxl.jiaoyu_zhuanye:'')
        // }
        // if (params.qrzxw !== '') {
        //   this.personForm.qrzxw_zg = params.qrzxw.jiaoyu_xuewei
        //   this.personForm.qrzxwxx_zg = (params.qrzxw.jiaoyu_xuexiao != null && params.qrzxw.jiaoyu_xuexiao !== '' && params.qrzxw.jiaoyu_xuexiao !== undefined ? params.qrzxw.jiaoyu_xuexiao:'')  +
        //     (params.qrzxw.jiaoyu_yuanxi != null && params.qrzxw.jiaoyu_yuanxi !== '' && params.qrzxw.jiaoyu_yuanxi !== undefined ? params.qrzxw.jiaoyu_yuanxi: '') +
        //     (params.qrzxw.jiaoyu_zhuanye!= null && params.qrzxw.jiaoyu_zhuanye !== '' && params.qrzxw.jiaoyu_zhuanye !== undefined ? params.qrzxw.jiaoyu_zhuanye:'')
        // }
        // if (params.zzxl !== '')  {
        //   this.personForm.zzxl_zg = params.zzxl.jiaoyu_xueli
        //   this.personForm.zzxlxx_zg = (params.zzxl.jiaoyu_xuexiao != null && params.zzxl.jiaoyu_xuexiao !== '' && params.zzxl.jiaoyu_xuexiao !== undefined ? params.zzxl.jiaoyu_xuexiao:'')  +
        //     (params.zzxl.jiaoyu_yuanxi != null && params.zzxl.jiaoyu_yuanxi !== '' && params.zzxl.jiaoyu_yuanxi !== undefined ? params.zzxl.jiaoyu_yuanxi: '') +
        //     (params.zzxl.jiaoyu_zhuanye!= null && params.zzxl.jiaoyu_zhuanye !== '' && params.zzxl.jiaoyu_zhuanye !== undefined ? params.zzxl.jiaoyu_zhuanye:'')
        // }
        // if (params.zzxw !== '') {
        //   this.personForm.zzxw_zg = params.zzxw.jiaoyu_xuewei
        //   this.personForm.zzxwxx_zg = (params.zzxw.jiaoyu_xuexiao != null && params.zzxw.jiaoyu_xuexiao !== '' && params.zzxw.jiaoyu_xuexiao !== undefined ? params.zzxw.jiaoyu_xuexiao:'')  +
        //     (params.zzxw.jiaoyu_yuanxi != null && params.zzxw.jiaoyu_yuanxi !== '' && params.zzxw.jiaoyu_yuanxi !== undefined ? params.zzxw.jiaoyu_yuanxi: '') +
        //     (params.zzxw.jiaoyu_zhuanye!= null && params.zzxw.jiaoyu_zhuanye !== '' && params.zzxw.jiaoyu_zhuanye !== undefined ? params.zzxw.jiaoyu_zhuanye:'')
        // }
        // this.initData(this.personForm.sfzh,this.title)
        // this.getPersonMessage(this.personForm.sfzh)
        if (params != "") {
          this.personForm.qrzxl_zg = params.qrzxl_zg;
          this.personForm.qrzxlxx_zg = params.qrzxlxx_zg;
          this.personForm.qrzxw_zg = params.qrzxw_zg;
          this.personForm.qrzxwxx_zg = params.qrzxwxx_zg;
          this.personForm.zzxl_zg = params.zzxl_zg;
          this.personForm.zzxlxx_zg = params.zzxlxx_zg;
          this.personForm.zzxw_zg = params.zzxw_zg;
          this.personForm.zzxwxx_zg = params.zzxwxx_zg;
        }
      },
      setSxly(xsly) {
        this.personForm.sxly = xsly;
        this.cadreInfoAlterUpdate("sxly");
      },
      getZzmm() {
        if (this.personForm.rudangxinxi_look == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.rudangxinxi_edit == "1") {
            let sfbj = this.personForm.rudangxinxi_edit;
            this.$refs.dialogZzmm.init(this.personForm, sfbj);
          } else {
            this.$refs.dialogZzmm.init(this.personForm, "0");
          }
        }
      },
      getPost() {
        if (this.personForm.personPostLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personPost;
            this.$refs.dialogPost.init(this.personForm.person_id, sfbj);
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      async onZzmm(resData) {
        this.zzmmForback = resData.rdsj;
        this.zzmm_dmForback =
          resData.zzmm_dm == "" ? "" : resData.zzmm_dm.value;
        this.dedp_dm = resData.dedp_dm == "" ? "" : resData.dedp_dm.value;
        this.dsdp_dm = resData.dsdp_dm == "" ? "" : resData.dsdp_dm.value;
        this.personForm.dedp_rdsj = resData.dedp_rdsj;
        this.personForm.dsdp_rdsj = resData.dsdp_rdsj;
        this.personForm.zzmm =
          resData.zzmm_dm == "" ? "" : resData.zzmm_dm.label;
        this.personForm.dedp =
          resData.dedp_dm == "" ? "" : resData.dedp_dm.label;
        this.personForm.dsdp =
          resData.dsdp_dm == "" ? "" : resData.dsdp_dm.label;
        let rdxx = "";
        let rdxxlrmx = "";
        let rdxxck = "";
        let rdsjck = "";
        if (resData.zzmm_dm.value) {
          rdxxck = resData.zzmm_dm.label;
          if (resData.dedp_dm.value) {
            rdxxck = rdxxck + "," + resData.dedp_dm.label;
            if (resData.dsdp_dm.value) {
              rdxxck = rdxxck + "," + resData.dsdp_dm.label;
            }
          }
        }
        if (resData.rdsj) {
          rdsjck = resData.rdsj.replace("-", ".").substring(0, 7);
          if (resData.dedp_rdsj) {
            rdsjck =
              rdsjck +
              "," +
              resData.dedp_rdsj.replace("-", ".").substring(0, 7);
            if (resData.dsdp_rdsj) {
              rdsjck =
                rdsjck +
                "," +
                resData.dsdp_rdsj.replace("-", ".").substring(0, 7);
            }
          }
        }
        if (
          resData.zzmm_dm.value == "01" ||
          resData.zzmm_dm.value == "02"
        ) {
          this.personForm.rdsj = resData.rdsj;
          rdxx =
            (resData.dedp_dm.value != "" &&
            resData.dedp_dm.value != null
              ? resData.dedp_dm.label + "、"
              : "") +
            (resData.dsdp_dm.value != "" &&
            resData.dsdp_dm.value != null
              ? resData.dsdp_dm.label + "、"
              : "");
          this.personForm.rudangxinxi =
            rdxx.charAt(rdxx.length - 1) == "、"
              ? rdxx.substring(0, rdxx.length - 1) +
              " (" +
              resData.rdsj.replace("-", ".").substring(0, 7) +
              ")"
              : resData.rdsj.replace("-", ".").substring(0, 7);
          rdxxlrmx =
            resData.rdsj.replace("-", "").substring(0, 6) +
            "；" +
            (resData.dedp_dm.value != "" &&
            resData.dedp_dm.value != null
              ? resData.dedp_dm.label + "；"
              : "") +
            (resData.dsdp_dm.value != "" &&
            resData.dsdp_dm.value != null
              ? resData.dsdp_dm.label + "；"
              : "");
        } else if (
          resData.dedp_dm.value == "01" ||
          resData.dedp_dm.value == "02"
        ) {
          this.personForm.rdsj = resData.dedp_rdsj;
          rdxx =
            (resData.zzmm_dm.value != "" &&
            resData.zzmm_dm.value != null
              ? resData.zzmm_dm.label + "、"
              : "") +
            (resData.dsdp_dm.value != "" &&
            resData.dsdp_dm.value != null
              ? resData.dsdp_dm.label + "、"
              : "");
          this.personForm.rudangxinxi =
            rdxx.charAt(rdxx.length - 1) == "、"
              ? rdxx.substring(0, rdxx.length - 1) +
              " (" +
              resData.dedp_rdsj.replace("-", ".").substring(0, 7) +
              ")"
              : resData.dedp_rdsj.replace("-", ".").substring(0, 7);
        } else if (
          resData.dsdp_dm.value == "01" ||
          resData.dsdp_dm.value == "02"
        ) {
          this.personForm.rdsj = resData.dsdp_rdsj;
          rdxx =
            (resData.zzmm_dm.value != "" &&
            resData.zzmm_dm.value != null
              ? resData.zzmm_dm.label + "、"
              : "") +
            (resData.dedp_dm.value != "" &&
            resData.dedp_dm.value != null
              ? resData.dedp_dm.label + "、"
              : "");
          this.personForm.rudangxinxi =
            rdxx.charAt(rdxx.length - 1) == "、"
              ? rdxx.substring(0, rdxx.length - 1) +
              " (" +
              resData.dsdp_rdsj.replace("-", ".").substring(0, 7) +
              ")"
              : resData.dsdp_rdsj.replace("-", ".").substring(0, 7);
        } else {
          this.personForm.rdsj = "";
          this.personForm.rudangxinxi =
            (resData.zzmm_dm.value != "" &&
            resData.zzmm_dm.value != null
              ? resData.zzmm_dm.label + "、"
              : "") +
            (resData.dedp_dm.value != "" &&
            resData.dedp_dm.value != null
              ? resData.dedp_dm.label + "、"
              : "") +
            (resData.dsdp_dm.value != "" &&
            resData.dsdp_dm.value != null
              ? resData.dsdp_dm.label + "、"
              : "");
          rdxxlrmx =
            (resData.zzmm_dm.value != "" &&
            resData.zzmm_dm.value != null
              ? resData.zzmm_dm.label + "；"
              : "") +
            (resData.dedp_dm.value != "" &&
            resData.dedp_dm.value != null
              ? resData.dedp_dm.label + "；"
              : "") +
            (resData.dsdp_dm.value != "" &&
            resData.dsdp_dm.value != null
              ? resData.dsdp_dm.label + "；"
              : "");
        }
        if (
          this.personForm.rudangxinxi.charAt(
            this.personForm.rudangxinxi.length - 1
          ) == "、"
        ) {
          this.personForm.rudangxinxi =
            this.personForm.rudangxinxi.substring(
              0,
              this.personForm.rudangxinxi.length - 1
            );
        }
        if (
          rdxxlrmx.charAt(this.personForm.rudangxinxi.length - 1) == "；"
        ) {
          rdxxlrmx = rdxxlrmx.substring(0, rdxxlrmx.length - 1);
        }
        this.personForm.rudangxinxiForLook = rdxxck;
        this.personForm.rdsjForLook = rdsjck;
        let that = this;
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            zzmm_dm: resData.zzmm_dm == "" ? "" : resData.zzmm_dm.value,
            dedp_dm: resData.dedp_dm == "" ? "" : resData.dedp_dm.value,
            dsdp_dm: resData.dsdp_dm == "" ? "" : resData.dsdp_dm.value,
            rdsj:
              this.personForm.rdsj == ""
                ? null
                : this.personForm.rdsj,
            dedp_rdsj: resData.dedp_rdsj,
            dsdp_rdsj: resData.dsdp_rdsj,
            rudangxinxi: this.personForm.rudangxinxi,
            rudangxinxilrmx: rdxxlrmx,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            if (that.title == "人员修改") {
              that.$message.success(response.message);
              // that.getPersonMessage(that.personForm.sfzh)
              // that.personForm.rudangxinxi = that.personForm.rudangxinxi
              that.personForm.rudangxinxiForLook = rdxxck;
              that.personForm.rdsjForLook = rdsjck;
              that.personForm.zzmm_dm = that.zzmm_dmForback;
              that.personForm.dedp_dm = that.dedp_dm;
              that.personForm.dsdp_dm = that.dsdp_dm;
            } else {
              that.personForm.zzmm_dm = that.zzmm_dmForback;
              that.personForm.dedp_dm = that.dedp_dm;
              that.personForm.dsdp_dm = that.dsdp_dm;
              that.zzmmOptions.forEach((item) => {
                if (item.detailCode == that.zzmm_dmForback) {
                  that.personForm.zzmm = item.detailName;
                }
                if (item.detailCode == that.dedp_dm) {
                  that.personForm.dedp = item.detailName;
                }
                if (item.detailCode == that.dsdp_dm) {
                  that.personForm.dsdp = item.detailName;
                }
              });
              that.personForm.rdsj = that.zzmmForback;
              that.personForm.rudangxinxiForLook = rdxxck;
              that.personForm.rdsjForLook = rdsjck;
            }
          } else {
            that.$message.error(response.message);
          }
        });
      },
      async onPosted(row) {
        if (
          row != null &&
          row.zhiwu_zhuangtai !== 0 &&
          row.zhiwu_zhuangtai !== "0"
        ) {
          this.personForm.zwcc = row.zhiwu_cengci;
          this.personForm.zwcc_dm = row.zhiwu_cengci_dm;
          this.personForm.zwcc_sj = row.zhiwu_pizhunriqi;
        } else {
          this.personForm.zwcc = "";
          this.personForm.zwcc_dm = "";
          this.personForm.zwcc_sj = null;
        }
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            zwcc_dm: this.personForm.zwcc_dm,
            zwcc_sj: this.personForm.zwcc_sj,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      onInChargeJob(data){
      //  this.personForm.fggz = data
          this.initData(this.person_id,this.personEdit,this.title,this.isDeleted);
      },
      getRank() {
        if (this.personForm.personRankLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personRank;
            this.$refs.dialogRank.init(this.personForm.person_id, sfbj);
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      async onRanked(row) {
        if (row === "" || row == null) {
          this.personForm.zjcc_mc = "";
          this.personForm.zjcc_dm = "";
          this.personForm.zjcc_sj = null;
          this.personForm.lxzwcj_sj = null;
        } else {
          this.personForm.zjcc_mc = row.zhiji_cengci;
          this.personForm.zjcc_dm = row.zhiji_cengci_dm;
          this.personForm.zjcc_sj = row.zhiji_pizhunriqi;
          this.personForm.lxzwcj_sj = row.zhiji_qisuanshijian;
        }
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            zjcc_dm: this.personForm.zjcc_dm,
            zjcc_sj: this.personForm.zjcc_sj,
            lxzwcj_sj: this.personForm.lxzwcj_sj,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      chooseParentModule(gxjg) {
        this.gxjg = gxjg;
        if (gxjg == "xz") {
          if (
            this.personForm.xingzheng_jg_mingcheng_edit != "1" ||
            this.personForm.xingzheng_jg_mingcheng_look != "1"
          ) {
          } else {
            this.$refs.dialogTree.init(gxjg);
          }
        } else if (gxjg == "tj") {
          if (
            this.personForm.xingzheng_jg_mingcheng_edit != "1" ||
            this.personForm.xingzheng_jg_mingcheng_look != "1"
          ) {
          } else {
            this.$refs.dialogTree.init(gxjg);
          }
        }
      },
      async onModuleChoosed(module) {
        if (this.gxjg === "tj") {
          this.personForm.tongji_jg_id = module.id;
          this.personForm.tongji_jg_mingcheng = module.label;
          // this.personForm.xingzheng_jg_bianma = module.id
          // this.personForm.xingzheng_jg_mingcheng = module.label
          this.gxjg = "";
          this.cadreInfoAlterUpdate("tongji_jg");
        } else if (this.gxjg === "xz") {
          this.personForm.xingzheng_jg_id = module.id;
          this.personForm.xingzheng_jg_mingcheng = module.label;
          this.gxjg = "";
          this.cadreInfoAlterUpdate("xingzheng_jg");
        } else if (this.gxjg === "gz") {
          this.personForm.gongzi_jg_id = module.id;
          this.personForm.gongzi_jg_mingcheng = module.label;
          this.gxjg = "";
        }
      },
      getAssessment() {
        if (this.personForm.personAssessmentLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personAssessment;
            this.$refs.dialogAssessment.init(
              this.personForm.person_id,
              this.personForm.kaohenianshu,
              this.personForm.kaohe,
              sfbj
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      getJob() {
        if (this.personForm.personJobLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personJob;
            this.$refs.dialogJob.init(this.personForm, "normal", sfbj);
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      getProfession() {
        if (this.personForm.personProfessionLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personProfession;
            this.$refs.dialogProfession.init(
              this.personForm.person_id,
              sfbj,
              this.personForm.zyjszw
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      getResume() {
        if (this.personForm.personResumeLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personResume;
            this.$refs.dialogResumeDetail.init(
              this.personForm.jianli,
              this.personForm.person_id,
              this.personForm.jianli_jingjian,
              this.personForm.sfzh,
              sfbj
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      getPunishment() {
        if (this.personForm.personPunishmentLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personPunishment;
            this.$refs.dialogPunishment.init(
              this.personForm.person_id,
              this.personForm.cf,
              sfbj
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      getDbwyqk () {
        if (this.personForm.personDeputyLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personDeputy;
            this.$refs.dialogDeputy.init(this.personForm.person_id, this.personForm.jl, this.personForm.ry_dbsf_zs, this.personForm.ry_hyzw_zs,sfbj)
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      getReward() {
        if (this.personForm.personRewardLook == "0") {
          this.$message.warning("没有查看权限！");
        } else {
          if (this.personForm.person_id) {
            let sfbj = this.personForm.personReward;
            this.$refs.dialogReward.init(
              this.personForm.person_id,
              this.personForm.jl,
              sfbj
            );
          } else {
            this.$message.error("请先完成人员基本信息维护！");
          }
        }
      },
      async onAssessmented(param) {
        this.personForm.kaohe = param.kaohe;
        this.personForm.kaohenianshu = param.kaohenianshu;
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            kaohe: this.personForm.kaohe,
            kaohenianshu: this.personForm.kaohenianshu,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      async onResumeDetail(jlzs, jljj) {
        this.personForm.jianli = jlzs;
        this.personForm.jianli_jingjian = jljj;
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            jianli: this.personForm.jianli,
            jianli_jingjian: this.personForm.jianli_jingjian,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      async onReward(jczs) {
        this.personForm.jl = jczs;
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            jl: this.personForm.jl,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      async onPunishment(jczs) {
        this.personForm.cf = jczs;
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            cf: this.personForm.cf,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      // 工作及职务点击确认
      async onJob(quancheng, jiancheng, zw_sj, zhiwu_qtrz) {
        this.personForm.zhiwu_quancheng = quancheng;
        this.personForm.zhiwu_jiancheng = jiancheng;
        this.personForm.zw_sj = zw_sj;
        this.personForm.zhiwu_qtrz = zhiwu_qtrz;
        // this.jobIds = ids
        const personJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: this.personForm.person_id,
            zhiwu_quancheng: this.personForm.zhiwu_quancheng,
            zhiwu_jiancheng: this.personForm.zhiwu_jiancheng,
            zw_sj: this.personForm.zw_sj,
            zhiwu_qtrz: this.personForm.zhiwu_qtrz,
          },
        };
        updatePerson(personJsons).then((response) => {
          if (response.result) {
            this.$message.success(response.message);
          } else {
            this.$message.error(response.message);
          }
        });
      },
      closedRmb() {
        //离任类型  离任时间  离任去向 清空
        this.personForm.tuichufangshi_mingcheng = "";
        this.personForm.tuichushijian = "";
        this.personForm.tuichuquxiang = "";
        this.personForm.glzt_biandongshijian = "";
        this.personForm.glzt_biandongyuanyin = "";
  
        this.activeName = "first";
        this.activeName1 = "rightTab";
        this.visible = false;
        this.onClosed();
        this.$emit("onClosed");
      },
      onTop(){
        this.$emit('onTop',this.person_id);
      },
      onBehind(){
        this.$emit('onBehind',this.person_id);
      },
      // 表单提交
      async onSubmit() {
        this.$refs.personBaseForm.validate((valid) => {
          showLoading();
          // //将级联下拉菜单数据进行特殊处理
          // let jiankang_dm = this.personForm.jiankang_dm
          let that = this;
          if (!that.personForm.xingming) {
            hideLoading();
            this.$message.error("请输入姓名！");
            return;
          }
          if (!that.personForm.zzmm_dm) {
            hideLoading();
            this.$message.error("请输入政治面貌！");
            return;
          }
          if (this.personForm.glzt == "在任") {
            if (!that.personForm.zhiwu_jiancheng) {
              hideLoading();
              that.$message.error("现工作单位及职务不可为空！");
              return;
            }
          }
  
          // let sfzh = that.personForm.sfzh
          // // let personId = that.personForm.person_id
          // // let job_ids = that.jobIds
          // let reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
          // if(!(sfzh && reg.test(sfzh))){
          //   hideLoading();
          //   this.$message.error('请输入正确的身份证号！')
          //   return
          // }
          let sjh = /^[1][3-9][0-9]{9}$/;
          if (
            this.personForm.shouji !== "" &&
            this.personForm.shouji !== undefined &&
            this.personForm.shouji !== null
          ) {
            if (
              !sjh.test(this.personForm.shouji) &&
              this.personForm.shouji !== ""
            ) {
              hideLoading();
              this.$message.error("请输入正确的电话号码");
              return;
            }
          }
          // if(!that.personForm.zhiweileibie_dm){
          //   hideLoading();
          //   this.$message.error('请选择职位类别！')
          //   return
          // }
          // if(!that.personForm.rylb_dm){
          //   hideLoading();
          //   this.$message.error('请选择人员类别！')
          //   return
          // }
          // if(!that.personForm.gllb){
          //   hideLoading();
          //   this.$message.error('请选择管理类别！')
          //   return
          // }
          // if(!that.personForm.xingzheng_jg_mingcheng){
          //   hideLoading();
          //   this.$message.error('请选择编制关系所在单位！')
          //   return
          // }
          // if(!that.personForm.tongji_jg_mingcheng){
          //   hideLoading();
          //   this.$message.error('请选择统计关系所在单位！')
          //   return
          // }
          if (
            that.personForm.jiankang !== "健康" &&
            that.personForm.jiankang !== "" &&
            !that.personForm.jiankang_xx
          ) {
            hideLoading();
            this.$message.error("请填写不健康原因！");
            return;
          }
          that.personForm.is_deleted = 0;
          if (valid) {
            let submitData = that.personForm;
            // delete submitData.gllb
            // delete submitData.glzt
            // delete submitData.minzu_mc
            // delete submitData.rylb
            // delete submitData.xingbie
            // delete submitData.bzlx
            // delete submitData.zhiweileibie_mingcheng
            // delete submitData.baoliudaiyumingcheng
            if (submitData.glnx == null || submitData.glnx == "") {
              submitData.glnx = "-1";
            }
            if (
              submitData.glnx_kc == null ||
              submitData.glnx_kc == ""
            ) {
              submitData.glnx_kc = "-1";
            }
            // if(submitData.lngzjl_bz){
            //   submitData.lngzjl_bz = 1
            // }else{
            //   submitData.lngzjl_bz = 0
            // }
            // if(submitData.shifouxuandiao){
            //   submitData.shifouxuandiao = 1
            // }else{
            //   submitData.shifouxuandiao = 0
            // }
            // if(submitData.jinjinpingshikaohe){
            //   submitData.jinjinpingshikaohe = 1
            // }else{
            //   submitData.jinjinpingshikaohe = 0
            // }
            // if(submitData.sfkl){
            //   submitData.sfkl = 1
            // }else{
            //   submitData.sfkl = 0
            // }
            const dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person: submitData,
              },
            };
            if (that.type === "add") {
              addGatherData(dataJsons)
                .then((response) => {
                  if (response.result) {
                    hideLoading();
                    that.$message.success(response.message);
                    that.initData(that.person_id,that.personEdit,that.title,that.isDeleted);
                  } else {
                    hideLoading();
                    // that.personForm.jiankang_dm = jiankang_dm
                    that.$message.error(response.message);
                  }
                })
                .catch(() => {
                  hideLoading();
                });
            } else {
              updateGatherData(dataJsons)
                .then((response) => {
                  if (response.result) {
                    hideLoading();
                    that.$message.success(response.message);
                    // that.updateJobIsOutputCheck(personId,job_ids)
                    that.initData(that.person_id,that.personEdit,that.title,that.isDeleted);
                  } else {
                    hideLoading();
                    // that.personForm.jiankang_dm = jiankang_dm
                    that.$message.error(response.message);
                  }
                })
                .catch(() => {
                  hideLoading();
                });
            }
            if (submitData.glnx == "-1") {
              submitData.glnx = "";
            }
            if (submitData.glnx_kc == "-1") {
              submitData.glnx_kc = "";
            }
          } else {
            hideLoading();
            that.$message.error("信息尚未填写完整，请核对后提交");
            return false;
          }
        });
      },
      updateJobIsOutputCheck(personId, job_ids) {
        const dataJsons = {
          userId: store.getters.user_id.toString(),
          token: store.getters.token.toString(),
          system: "datacenter",
          data: {
            person_id: personId,
            job_id: job_ids,
          },
        };
        updateJobOutputCheck(dataJsons).then((response) => {
          if (!response.result) {
            // that.personForm.jiankang_dm = jiankang_dm
            this.$message.error(response.message);
          }
        });
      },
      onClosed() {
        this.activeName = "first";
        this.activeName1 = "rightTab";
        this.visible = false;
        this.personForm = {
          zhaopian: "",
          zhaopian_edit: "1",
          zhaopian_look: "1",
          person_id: "",
          rudangxinxi: "",
          rudangxinxiForLook: "",
          rudangxinxi_edit: "1",
          rudangxinxi_look: "1",
          xingming: "",
          xingming_edit: "1",
          xingming_look: "1",
          xingbie: "",
          xingbie_edit: "1",
          xingbie_look: "1",
          xingbie_dm: "",
          csny: "",
          csny_edit: "1",
          csny_look: "1",
          minzu_dm: "",
          minzu_mc: "",
          minzu_mc_edit: "1",
          minzu_mc_look: "1",
          jiguan: "",
          jiguan_edit: "1",
          jiguan_look: "1",
          jiguan_dm: "",
          chushengdi: "",
          chushengdi_edit: "1",
          chushengdi_look: "1",
          chushengdi_dm: "",
          chengzhangdi: "",
          chengzhangdi_dm: "",
          zhiweileibie_mingcheng: "",
          zhiweileibie_mingcheng_edit: "1",
          zhiweileibie_mingcheng_look: "1",
          rdsj: "",
          rdsjForLook: "",
          rdsj_edit: "1",
          rdsj_look: "1",
          cjgzsj: "",
          cjgzsj_edit: "1",
          cjgzsj_look: "1",
          klsj: "",
          klsj_edit: "1",
          klsj_look: "1",
          jiankang: "",
          jiankang_edit: "1",
          jiankang_look: "1",
          jiankang_xx: "",
          jiankang_xx_edit: "1",
          jiankang_xx_look: "1",
          sfzh: "",
          sfzh_edit: "1",
          sfzh_look: "1",
          gwydjsj: "",
          gwydjsj_edit: "1",
          gwydjsj_look: "1",
          xuandiaoriqi: "",
          xuandiaoriqi_edit: "1",
          xuandiaoriqi_look: "1",
          zhiwu_quancheng: "",
          zhiwu_jiancheng: "",
          tongji_jg_id: "",
          tongji_jg_mingcheng: "",
          tongji_jg_mingcheng_edit: "1",
          tongji_jg_mingcheng_look: "1",
          xingzheng_jg_id: "",
          xingzheng_jg_mingcheng: "",
          xingzheng_jg_mingcheng_edit: "1",
          xingzheng_jg_mingcheng_look: "1",
          gongzi_jg_id: "",
          gongzi_jg_mingcheng: "",
          zzmm: "",
          zzmm_dm: "",
          dedp_dm: "",
          dedp: "",
          dsdp_dm: "",
          dsdp: "",
          dedp_rdsj: "",
          dsdp_rdsj: "",
          shouji: "",
          shouji_edit: "1",
          shouji_look: "1",
          zyjszw: "",
          zyjszw_edit: "1",
          zyjszw_look: "1",
          zhuanyejishu: "",
          zhuanyejishu_edit: "1",
          zhuanyejishu_look: "1",
          qrzxl_zg: "",
          qrzxlxx_zg: "",
          qrzxw_zg: "",
          qrzxwxx_zg: "",
          zzxl_zg: "",
          zzxlxx_zg: "",
          zzxw_zg: "",
          zzxwxx_zg: "",
          zwcc_dm: "",
          zwcc: "",
          zwcc_sj: "",
          zjcc_dm: "",
          zjcc_mc: "",
          zjcc_sj: "",
          lxzwcj_sj: "",
          zwlb: "",
          zwlb_dm: "",
          gllb: "",
          gllb_edit: "1",
          gllb_look: "1",
          gllb_dm: "",
          rylb: "",
          rylb_edit: "1",
          rylb_look: "1",
          rylb_dm: "",
          baoliudaiyudaima: "",
          zhiweileibie_dm: "",
          lngzjl_bz: "",
          lngzjl_bz_edit: "1",
          lngzjl_bz_look: "1",
          jinjinpingshikaohe: "",
          jinjinpingshikaohe_edit: "1",
          jinjinpingshikaohe_look: "1",
          sfkl: "",
          sfkl_edit: "1",
          sfkl_look: "1",
          fggz:'',
          fggz_edit:'1',
          fggz_look:'1',
          shifouxuandiao: "",
          shifouxuandiao_edit: "1",
          shifouxuandiao_look: "1",
          bzlx: "",
          bzlx_edit: "1",
          bzlx_look: "1",
          bzlx_dm: "",
          jianli: "",
          jianli_jingjian: "",
          gzjb_dm: "",
          gzjb: "",
          gzjb_edit: "1",
          gzjb_look: "1",
          zyjs_dm: "",
          zyjs_mingcheng: "",
          zyjs_mingcheng_edit: "1",
          zyjs_mingcheng_look: "1",
          jl: "",
          cf: "",
          kaohe: "",
          zw_sj: "",
          zhiwu_qtrz: "",
          baoliudaiyumingcheng: "",
          baoliudaiyumingcheng_look: "1",
          baoliudaiyumingcheng_edit: "1",
          personBase: "1",
          personJob: "1",
          personEducation: "1",
          personPost: "1",
          personRank: "1",
          personResume: "1",
          personAssessment: "1",
          personPunishment: "1",
          personReward: "1",
          personFamily: "1",
          personProfession: "1",
          personBaseLook: "1",
          personJobLook: "1",
          personEducationLook: "1",
          personPostLook: "1",
          personYepostLook: "1",
          personRankLook: "1",
          personResumeLook: "1",
          personAssessmentLook: "1",
          personPunishmentLook: "1",
          personDeputy: "1",
          personDeputyLook :"1",
          personRewardLook: "1",
          personFamilyLook: "1",
          personProfessionLook: "1",
          glnx: "",
          glnx_edit: "1",
          glnx_look: "1",
          glnx_qssj: "",
          glnx_qssj_edit: "1",
          glnx_qssj_look: "1",
          glnx_kcqssj: "",
          glnx_kcqssj_edit: "1",
          glnx_kcqssj_look: "1",
          glnx_kcjzsj: "",
          glnx_kcjzsj_edit: "1",
          glnx_kcjzsj_look: "1",
          personTrainLook: "1",
          personArchivesLook: "1",
          personAttachLook: "1",
          glnx_kc: "",
          glnx_kc_edit: "1",
          glnx_kc_look: "1",
          glnx_shuoming: "",
          glnx_shuoming_edit: "1",
          glnx_shuoming_look: "1",
          qiaojuan: "",
          qiaojuan_edit: "1",
          qiaojuan_look: "1",
          sxly: "",
          sxly_look: "1",
          sxly_edit: "1",
          tuichuquxiang: "",
          yezwcc_banben: "",
          yezwcc_bianma: "",
          yezwcc_mc: "",
          yezwcc_mc_edit: "1",
          yezwcc_mc_look: "1",
          yezwcc_sj: "",
        };
  
        this.$emit("onClosed");
      },
      handleAvatarSuccess(res, file) {
        // this.personForm.zhaopian = URL.createObjectURL(file.raw);
        this.personForm.zhaopian = res.url;
        this.cadreInfoAlterUpdate("zhaopian");
      },
      beforeAvatarUpload(file) {
        // const isJPG = file.type === 'image/jpeg';
        const isLt2M = file.size / 1024 / 1024 < 2;
  
        // if (!isJPG) {
        //   this.$message.error('上传头像图片只能是 JPG 格式!');
        // }
        if (!isLt2M) {
          this.$message.error("上传头像图片大小不能超过 2MB!");
        }
        // return isJPG && isLt2M;
        return isLt2M;
      },
      // 取值
      getValue(value) {
        this.valueId = value;
      },
      querySearch(queryString, cb) {
        let restaurants = this.restaurants;
        let results = queryString
          ? restaurants.filter(this.createFilter(queryString))
          : restaurants;
        // 调用 callback 返回建议列表的数据
        cb(results);
      },
      createFilter(queryString) {
        return (restaurant) => {
          return (
            restaurant.value
              .toLowerCase()
              .indexOf(queryString.toLowerCase()) === 0
          );
        };
      },
      updateIdCard() {
        if (this.personForm.sf_sfzh_sh != "1") {
          if (this.personForm.sfzh_edit == "1") {
            this.$refs.dialogIdCard.init(
              this.personForm.sfzh,
              this.personForm.person_id
            );
          }
        } else {
          this.$message.warning("身份证号已核实，不可修改！");
        }
      },
      onGetIdCard(idCard) {
        this.personForm.sfzh = idCard;
      },
      checkForm(value) {
        if (value == null || value === "" || value.trim() === "") {
          return false;
        } else {
          return true;
        }
      },
      cadreInfoAlterUpdate(type) {
        if (this.title == "人员修改") {
          let dataJsons = {};
          const that = this;
          if (type == "xingming") {
            if (!this.checkForm(this.personForm.xingming)) {
              this.$message.error("姓名不允许为空！");
              hideLoading();
              return;
            }
            if (this.personForm.xingming_edit == "1") {
              showLoading();
              dataJsons = {
                userId: store.getters.user_id.toString(),
                token: store.getters.token.toString(),
                system: "datacenter",
                data: {
                  person_id: this.personForm.person_id,
                  xingming: this.personForm.xingming,
                },
              };
              cadreInfoAlter(dataJsons)
                .then((response) => {
                  hideLoading();
                  if (response.result) {
                    that.$message.success(response.message);
                  } else {
                    that.$message.error(response.message);
                  }
                })
                .catch(() => {
                  hideLoading();
                });
            }
          } else if (type == "shouji") {
            const reg = /^[1][3-9][0-9]{9}$/;
            if (
              this.checkForm(this.personForm.shouji) &&
              this.personForm.shouji !== undefined
            ) {
              if (!reg.test(this.personForm.shouji)) {
                this.$message.error("请输入正确的电话号码");
                hideLoading();
                return;
              } else {
                if (this.personForm.shouji_edit == "1") {
                  showLoading();
                  dataJsons = {
                    userId: store.getters.user_id.toString(),
                    token: store.getters.token.toString(),
                    system: "datacenter",
                    data: {
                      person_id: this.personForm.person_id,
                      shouji: this.personForm.shouji,
                    },
                  };
                  cadreInfoAlter(dataJsons)
                    .then((response) => {
                      hideLoading();
                      if (response.result) {
                        that.$message.success(
                          response.message
                        );
                      } else {
                        that.$message.error(
                          response.message
                        );
                      }
                    })
                    .catch(() => {
                      hideLoading();
                    });
                }
              }
            } else {
              // this.$message.error('手机号不允许为空！')
              hideLoading();
              return;
            }
          } else if (type == "zhaopian") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zhaopian: this.personForm.zhaopian,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "csny") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                csny: this.personForm.csny,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "cjgzsj") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                cjgzsj: this.personForm.cjgzsj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "xingbie") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                xingbie: this.personForm.xingbie,
                xingbie_dm: this.personForm.xingbie_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zhiweileibie") {
            // if(!this.checkForm(this.personForm.zhiweileibie_dm)){
            //   this.$message.error('职位类别不允许为空！')
            //   return
            // }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zhiweileibie_mingcheng:
                this.personForm.zhiweileibie_mingcheng,
                zhiweileibie_dm: this.personForm.zhiweileibie_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "jiguan") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                jiguan: this.personForm.jiguan,
                jiguan_dm: this.personForm.jiguan_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "chushengdi") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                chushengdi: this.personForm.chushengdi,
                chushengdi_dm: this.personForm.chushengdi_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "minzu") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                minzu_mc: this.personForm.minzu_mc,
                minzu_dm: this.personForm.minzu_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "rylb") {
            // if(!this.checkForm(this.personForm.rylb_dm)){
            //   this.$message.error('人员类别不允许为空！')
            //   hideLoading()
            //   return
            // }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                rylb: this.personForm.rylb,
                rylb_dm: this.personForm.rylb_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "bzlx") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                bzlx: this.personForm.bzlx,
                bzlx_dm: this.personForm.bzlx_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "gllb") {
            // if(!this.checkForm(this.personForm.gllb_dm)){
            //   this.$message.error('管理类别不允许为空！')
            //   hideLoading()
            //   return
            // }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                gllb: this.personForm.gllb,
                gllb_dm: this.personForm.gllb_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "baoliudaiyu") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                baoliudaiyumingcheng:
                this.personForm.baoliudaiyumingcheng,
                baoliudaiyudaima: this.personForm.baoliudaiyudaima,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "gwydjsj") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                gwydjsj: this.personForm.gwydjsj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "jiankang") {
            if (
              this.personForm.jiankang == "健康" ||
              this.personForm.jiankang == ""
            ) {
              showLoading();
              this.personForm.jiankang_xx = "";
              dataJsons = {
                userId: store.getters.user_id.toString(),
                token: store.getters.token.toString(),
                system: "datacenter",
                data: {
                  person_id: this.personForm.person_id,
                  jiankang: this.personForm.jiankang,
                  jiankang_xx: this.personForm.jiankang_xx,
                },
              };
              cadreInfoAlter(dataJsons)
                .then((response) => {
                  hideLoading();
                  if (response.result) {
                    that.$message.success(response.message);
                  } else {
                    that.$message.error(response.message);
                  }
                })
                .catch(() => {
                  hideLoading();
                });
            } else {
              if (
                this.personForm.jiankang_xx == null ||
                this.personForm.jiankang_xx == ""
              ) {
                that.$message.warning("请填写不健康原因！");
              } else {
                showLoading();
                dataJsons = {
                  userId: store.getters.user_id.toString(),
                  token: store.getters.token.toString(),
                  system: "datacenter",
                  data: {
                    person_id: this.personForm.person_id,
                    jiankang: this.personForm.jiankang,
                    jiankang_xx: this.personForm.jiankang_xx,
                  },
                };
                cadreInfoAlter(dataJsons)
                  .then((response) => {
                    hideLoading();
                    if (response.result) {
                      that.$message.success(response.message);
                    } else {
                      that.$message.error(response.message);
                    }
                  })
                  .catch(() => {
                    hideLoading();
                  });
              }
            }
          } else if (type == "zhuanyejishu") {
            if (this.personForm.zhuanyejishu == "1") {
              showLoading();
              dataJsons = {
                userId: store.getters.user_id.toString(),
                token: store.getters.token.toString(),
                system: "datacenter",
                data: {
                  person_id: this.personForm.person_id,
                  zhuanyejishu: this.personForm.zhuanyejishu,
                },
              };
              cadreInfoAlter(dataJsons)
                .then((response) => {
                  hideLoading();
                  if (response.result) {
                    that.$message.success(response.message);
                  } else {
                    that.$message.error(response.message);
                  }
                })
                .catch(() => {
                  hideLoading();
                });
            }
          } else if (type == "lngzjl_bz") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                lngzjl_bz: this.personForm.lngzjl_bz, // == true ? '1' : '0'
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "jinjinpingshikaohe") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                jinjinpingshikaohe:
                this.personForm.jinjinpingshikaohe, // == true ? '1' : '0'
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "sfkl") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                sfkl: this.personForm.sfkl, // == true ? '1' : '0'
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "shifouxuandiao") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                shifouxuandiao: this.personForm.shifouxuandiao, // == true ? '1' : '0'
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "xuandiaoriqi") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                xuandiaoriqi: this.personForm.xuandiaoriqi,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "klsj") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                klsj: this.personForm.klsj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "xingzheng_jg") {
            if (!this.checkForm(this.personForm.xingzheng_jg_id)) {
              this.$message.error("行政关系所在单位不允许为空！");
              hideLoading();
              return;
            }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                xingzheng_jg_mingcheng:
                this.personForm.xingzheng_jg_mingcheng,
                xingzheng_jg_id: this.personForm.xingzheng_jg_id,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "tongji_jg") {
            // if(!this.checkForm(this.personForm.tongji_jg_id)){
            //   this.$message.error('统计关系所在单位不允许为空！')
            //   hideLoading()
            //   return
            // }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                tongji_jg_mingcheng:
                this.personForm.tongji_jg_mingcheng,
                tongji_jg_id: this.personForm.tongji_jg_id,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zhiwu_jiancheng") {
            if (!this.checkForm(this.personForm.zhiwu_jiancheng)) {
              this.$message.error("现工作单位及职务不允许为空！");
              hideLoading();
              return;
            }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zhiwu_quancheng: this.personForm.zhiwu_quancheng,
                zhiwu_jiancheng: this.personForm.zhiwu_jiancheng,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zyjszw") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zyjszw: this.personForm.zyjszw,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "jl") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                jl: this.personForm.jl,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "cf") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                cf: this.personForm.cf,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zwcc") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zwcc: this.personForm.zwcc,
                zwcc_dm: this.personForm.zwcc_dm,
                zwcc_sj: this.personForm.zwcc_sj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zjcc") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zjcc_mc: this.personForm.zjcc_mc,
                zjcc_dm: this.personForm.zjcc_dm,
                zjcc_sj: this.personForm.zjcc_sj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "qrzxl_zg") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                qrzxl_zg: this.personForm.qrzxl_zg,
                qrzxlxx_zg: this.personForm.qrzxlxx_zg,
                qrzxw_zg: this.personForm.qrzxw_zg,
                qrzxwxx_zg: this.personForm.qrzxwxx_zg,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zzxl_zg") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zzxl_zg: this.personForm.zzxl_zg,
                zzxlxx_zg: this.personForm.zzxlxx_zg,
                zzxw_zg: this.personForm.zzxw_zg,
                zzxwxx_zg: this.personForm.zzxwxx_zg,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "jianli_jingjian") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                jianli_jingjian: this.personForm.jianli_jingjian,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "zhaopian") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zhaopian: this.personForm.zhaopian,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "gzjb") {
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                gzjb_dm: this.personForm.gzjb_dm,
                gzjb: this.personForm.gzjb,
              },
            };
            cadreInfoAlter(dataJsons).then((response) => {
              hideLoading();
              if (response.result) {
                that.$message.success(response.message);
              } else {
                that.$message.error(response.message);
              }
            });
          } else if (type == "zyjs") {
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                zyjs_dm: this.personForm.zyjs_dm,
                zyjs_mingcheng: this.personForm.zyjs_mingcheng,
              },
            };
            cadreInfoAlter(dataJsons).then((response) => {
              hideLoading();
              if (response.result) {
                that.$message.success(response.message);
              } else {
                that.$message.error(response.message);
              }
            });
          } else if (type == "glnx") {
            if (this.personForm.glnx) {
              const re = /^[0-9]*[1-9][0-9]*$/;
              const rsCheck = re.test(this.personForm.glnx);
              if (!rsCheck) {
                this.$message.warning("请输入正整数");
                this.personForm.glnx = "";
                return;
              }
            }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                glnx: this.personForm.glnx,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "glnx_qssj") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                glnx_qssj: this.personForm.glnx_qssj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "glnx_kcqssj") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                glnx_kcqssj: this.personForm.glnx_kcqssj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "glnx_kcjzsj") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                glnx_kcjzsj: this.personForm.glnx_kcjzsj,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "glnx_kc") {
            if (this.personForm.glnx_kc) {
              const re = /^[0-9]*[1-9][0-9]*$/;
              const rsCheck = re.test(this.personForm.glnx_kc);
              if (!rsCheck) {
                this.$message.warning("请输入正整数");
                this.personForm.glnx_kc = "";
                return;
              }
            }
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                glnx_kc: this.personForm.glnx_kc,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "glnx_shuoming") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                glnx_shuoming: this.personForm.glnx_shuoming,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "qiaojuan") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                qiaojuan: this.personForm.qiaojuan,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "glzt") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                tuichushijian: this.personForm.tuichushijian,
                glzt_dm: this.personForm.glzt_dm,
                tuichufangshi_dm: this.personForm.tuichufangshi_dm,
                tuichuquxiang: this.personForm.tuichuquxiang,
                glzt_biandongshijian:
                this.personForm.glzt_biandongshijian,
                glzt_biandongyuanyin:
                this.personForm.glzt_biandongyuanyin,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "lrlx") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                tuichushijian: this.personForm.tuichushijian,
                tuichufangshi_dm:
                this.personForm.tuichufangshi_mingcheng_dm,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          } else if (type == "sxly") {
            showLoading();
            dataJsons = {
              userId: store.getters.user_id.toString(),
              token: store.getters.token.toString(),
              system: "datacenter",
              data: {
                person_id: this.personForm.person_id,
                sxly: this.personForm.sxly,
              },
            };
            cadreInfoAlter(dataJsons)
              .then((response) => {
                hideLoading();
                if (response.result) {
                  that.$message.success(response.message);
                } else {
                  that.$message.error(response.message);
                }
              })
              .catch(() => {
                hideLoading();
              });
          }
        }
      },
    },
  };
  </script>
  <style scoped>
  /deep/ .el-tabs__header {
    margin: 0;
  }
  /deep/ .el-card__body {
    padding: 0;
  }
  /deep/ .el-popover {
    box-shadow: 0 2px 12px 0 rgb(0, 0, 0);
    padding: 0;
  }
  /deep/ .el-table--border {
    border: solid 1px #e6e6e6;
  }
  /deep/ .el-tabs__item.is-active {
    background-color: #bedeff;
  }
  /deep/ .ltp-table textarea {
    border: 0px;
  }
  .ltp-table >>> .el-input__inner {
    border: 0px;
  }
  
  .ltp-table tr td div span span i {
    font-size: 25px;
    color: blue;
  }
  
  /deep/ .el-dialog .el-dialog__body {
    padding: 1px 0 0 0;
    overflow: auto;
  }
  .ltp-table {
    margin-top: 8px;
  }
  .ltp-table tr td {
    text-align: left;
    /*padding: 0 5px 0 5px;*/
    border: solid 1px #74a6cc;
    position: relative;
  }
  .ltp-table tr td input:-moz-placeholder,
  textarea:-moz-placeholder {
    color: black;
  }
  .ltp-table tr th {
    background-color: #c0dcf2;
    font-size: 15px;
    font-family: 微软雅黑, 宋体, Arial, Helvetica, Verdana, sans-serif;
    font-weight: bold;
    border: solid 1px #74a6cc;
  }
  
  .ltp-table tr {
    height: 50px;
  }
  
  .ltp-table th {
    width: 105px;
    text-align: center;
    padding: 0;
  }
  .ltp-table-right {
    background-color: #d6e3f3;
  }
  .ltp-table-right tr td {
    text-align: left;
    padding: 0 5px 0 5px;
    border: 0;
    position: relative;
  }
  
  .ltp-table-right tr th {
    background-color: #d6e3f3;
    font-size: 15px;
    border: 0;
  }
  .ltp-table-right tr {
    height: 46px;
  }
  .ltp-table-right th {
    width: 130px;
    text-align: center;
    padding: 0;
  }
  /deep/ .el-tabs--border-card > .el-tabs__content {
    padding: 0;
  }
  /deep/ .dialog-footer {
    margin: 0 10px 10px 0;
  }
  /deep/ .el-dialog__footer {
    padding: 0 0 1px 0;
  }
  .ltpmust:before {
    content: "";
    margin-top: -24px;
    margin-left: 57px;
    position: absolute;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent red transparent;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .ltpInputAudit:before {
    position: absolute;
    left: 0;
    top: 49px;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(246, 232, 158, 0.5);
    content: attr(data-text);
    transition: all 1s ease;
    transform: translateY(-100%);
    color: #fff;
  }
  .ltpInputAudit >>> .el-input__inner {
    background-color: rgba(246, 232, 158, 0.1);
  }
  .ltpInputLook:after {
    position: absolute;
    left: 0;
    top: 49px;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    content: attr(data-text);
    transition: all 1s ease;
    transform: translateY(-100%);
    color: #fff;
  }
  .ltpInputLook input textarea {
    /*pointer-events:none;*/
    cursor: not-allowed;
  }
  .ltpAudit {
    background-color: rgba(255, 255, 255, 0.5);
  }
  .ltpAudit >>> .el-input__inner {
    background-color: rgba(255, 255, 255, 0.1);
  }
  .ltpAudit >>> .el-textarea__inner {
    background-color: rgba(255, 255, 255, 0.1);
  }
  .ltpLook {
    background-color: rgba(246, 246, 226, 0.5);
  }
  .ltpLook >>> .el-input__inner {
    background-color: rgba(246, 246, 226, 0.1);
  }
  .ltpLook >>> .el-textarea__inner {
    background-color: rgba(246, 246, 226, 0.1);
  }
  /deep/ .el-input.is-disabled .el-input__inner {
    background-color: transparent !important;
    color: #606266 !important;
  }
  /* /deep/ .el-tabs__content{
      height: 100%;
      overflow-y: auto
    } */
  .box-el-dialog {
    /* height: 80%!important;
      overflow-y: auto; */
  }
  .box-content-height {
    height: 90%;
    width: 100%;
    overflow: auto;
  }
  .content-height {
    height: 100%;
  }
  .height100 {
    height: 100%;
  }
  .content-height-right {
    height: 100%;
  }
  /deep/.content-height-right .el-tabs__content {
    height: 94%;
  }
  .content-height-table {
    height: 700px;
  }
  </style>
  